File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/service-library/src/servicelib/aiohttp Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def handle_aiohttp_web_http_error(
118118 exception .content_type = MIMETYPE_APPLICATION_JSON
119119 if exception .reason :
120120 exception .set_status (
121- exception .status , safe_status_message (message = exception .reason )
121+ exception .status , reason = safe_status_message (message = exception .reason )
122122 )
123123
124124 if not exception .text or not is_enveloped_from_text (exception .text ):
@@ -165,7 +165,7 @@ def _handle_aiohttp_web_http_successful(
165165 exception .content_type = MIMETYPE_APPLICATION_JSON
166166 if exception .reason :
167167 exception .set_status (
168- exception .status , safe_status_message (message = exception .reason )
168+ exception .status , reason = safe_status_message (message = exception .reason )
169169 )
170170
171171 if exception .text and not is_enveloped_from_text (exception .text ):
You can’t perform that action at this time.
0 commit comments