mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Fix BrokenPipeError handling in cqi_over_socketio
This commit is contained in:
parent
c3834ca400
commit
960f36c740
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user