We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ac1c97 commit d7f55aaCopy full SHA for d7f55aa
packages/service-library/src/servicelib/aiohttp/rest_middlewares.py
@@ -124,10 +124,11 @@ def _handle_http_error(
124
# NOTE: aiohttp.HTTPException creates `text = f"{self.status}: {self.reason}"`
125
user_error_msg = exception.text or "Unexpected error"
126
127
- error_code = None
+ error_code: IDStr | None = None
128
if is_5xx_server_error(exception.status):
129
- error_code = _log_5xx_server_error(request, exception, user_error_msg)
130
- error_code = IDStr(error_code)
+ error_code = IDStr(
+ _log_5xx_server_error(request, exception, user_error_msg)
131
+ )
132
133
error_model = ErrorGet(
134
errors=[
0 commit comments