File tree 3 files changed +3
-10
lines changed
src/simcore_service_payments
3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 6
6
RUT : Final [str ] = "Resource Usage Tracker service"
7
7
8
8
9
- MSG_GATEWAY_UNAVAILABLE_ERROR = "Our payments provider is temporary unavailable "
9
+ MSG_GATEWAY_UNAVAILABLE_ERROR = "Our payments provider is temporary innoperative "
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ def _reraise_as_service_errors_context(operation_id: str):
94
94
except httpx .RequestError as err :
95
95
_logger .exception ("%s: request error" , PAG )
96
96
raise PaymentServiceUnavailableError (
97
- human_reason = MSG_GATEWAY_UNAVAILABLE_ERROR
97
+ human_readable_detail = MSG_GATEWAY_UNAVAILABLE_ERROR
98
98
) from err
99
99
100
100
except httpx .HTTPStatusError as err :
@@ -110,7 +110,7 @@ def _reraise_as_service_errors_context(operation_id: str):
110
110
# 5XX in server -> turn into unavailable
111
111
_logger .exception (error .get_detailed_message ())
112
112
raise PaymentServiceUnavailableError (
113
- human_reason = MSG_GATEWAY_UNAVAILABLE_ERROR
113
+ human_readable_detail = MSG_GATEWAY_UNAVAILABLE_ERROR
114
114
) from err
115
115
116
116
Original file line number Diff line number Diff line change @@ -98,13 +98,6 @@ async def test_rpc_init_payment_fail(
98
98
timeout_s = None if is_pdb_enabled else 5 ,
99
99
)
100
100
101
- error = exc_info .value
102
- assert isinstance (error , RPCServerError )
103
- assert error .exc_type == "httpx.ConnectError"
104
- assert error .method_name == "init_payment"
105
- assert error .exc_message
106
- assert error .traceback
107
- # FIXME: should raise
108
101
assert isinstance (exc_info .value , PaymentServiceUnavailableError )
109
102
110
103
You can’t perform that action at this time.
0 commit comments