Skip to content
Snippets Groups Projects
Commit 960f36c7 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Fix BrokenPipeError handling in cqi_over_socketio

parent c3834ca4
No related branches found
No related tags found
No related merge requests found
...@@ -86,11 +86,8 @@ def cqi_over_sio(fn_name: str, fn_args: Dict = {}): ...@@ -86,11 +86,8 @@ def cqi_over_sio(fn_name: str, fn_args: Dict = {}):
cqi_client_lock.acquire() cqi_client_lock.acquire()
try: try:
fn_return_value = fn(**fn_args) fn_return_value = fn(**fn_args)
except BrokenPipeError: except BrokenPipeError as e:
fn_return_value = { return {'code': 500, 'msg': 'Internal Server Error'}
'code': 500,
'msg': 'Internal Server Error'
}
except CQiException as e: except CQiException as e:
return { return {
'code': 502, 'code': 502,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment