Skip to content

Commit 3a8b1e5

Browse files
pcrespovCopilot
andauthored
Update packages/service-library/src/servicelib/aiohttp/rest_responses.py
Co-authored-by: Copilot <[email protected]>
1 parent 152a946 commit 3a8b1e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def create_http_error(
9191
status_reason = status_reason or get_code_description(http_error_cls.status_code)
9292
error_message = error_message or get_code_description(http_error_cls.status_code)
9393

94-
assert len(status_reason) < MAX_STATUS_MESSAGE_LENGTH # nosec
94+
assert len(status_reason) <= MAX_STATUS_MESSAGE_LENGTH # nosec
9595

9696
if is_internal_error and skip_internal_error_details:
9797
error = ErrorGet.model_validate(

0 commit comments

Comments
 (0)