Skip to content

Commit 206fa0d

Browse files
committed
other
1 parent fd79f8c commit 206fa0d

File tree

1 file changed

+2
-1
lines changed
  • services/web/server/src/simcore_service_webserver/exporter

1 file changed

+2
-1
lines changed

services/web/server/src/simcore_service_webserver/exporter/exceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ class SDSException(HTTPBadRequest): # pylint: disable=too-many-ancestors
66
"""Basic exception for errors raised inside the module"""
77

88
def __init__(self, message: str):
9-
super().__init__(reason=message)
9+
# Multiline not allowed in HTTP reason attribute
10+
super().__init__(reason=message.replace("\n", " ") if message else None)

0 commit comments

Comments
 (0)