Skip to content

Commit 64c6873

Browse files
committed
minor kwargs
1 parent 8565df1 commit 64c6873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/service-library/src/servicelib/aiohttp/rest_middlewares.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)