Fix BrokenPipeError handling in cqi_over_socketio

This commit is contained in:
Patrick Jentsch 2023-07-12 10:54:52 +02:00
parent c3834ca400
commit 960f36c740

View File

@ -86,11 +86,8 @@ def cqi_over_sio(fn_name: str, fn_args: Dict = {}):
cqi_client_lock.acquire()
try:
fn_return_value = fn(**fn_args)
except BrokenPipeError:
fn_return_value = {
'code': 500,
'msg': 'Internal Server Error'
}
except BrokenPipeError as e:
return {'code': 500, 'msg': 'Internal Server Error'}
except CQiException as e:
return {
'code': 502,