File tree 3 files changed +3
-4
lines changed
src/simcore_service_payments
3 files changed +3
-4
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 @@ -90,7 +90,7 @@ def _reraise_as_service_errors_context(operation_id: str):
90
90
except httpx .RequestError as err :
91
91
_logger .exception ("%s: request error" , PAG )
92
92
raise PaymentServiceUnavailableError (
93
- human_reason = MSG_GATEWAY_UNAVAILABLE_ERROR
93
+ human_readable_detail = MSG_GATEWAY_UNAVAILABLE_ERROR
94
94
) from err
95
95
96
96
except httpx .HTTPStatusError as err :
@@ -106,7 +106,7 @@ def _reraise_as_service_errors_context(operation_id: str):
106
106
# 5XX in server -> turn into unavailable
107
107
_logger .exception (error .get_detailed_message ())
108
108
raise PaymentServiceUnavailableError (
109
- human_reason = MSG_GATEWAY_UNAVAILABLE_ERROR
109
+ human_readable_detail = MSG_GATEWAY_UNAVAILABLE_ERROR
110
110
) from err
111
111
112
112
Original file line number Diff line number Diff line change @@ -98,7 +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
- # FIXME: should raise
102
101
assert isinstance (exc_info .value , PaymentServiceUnavailableError )
103
102
104
103
You can’t perform that action at this time.
0 commit comments