From 960f36c7401449238748fd68822c42a89d76840b Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 12 Jul 2023 10:54:52 +0200 Subject: [PATCH] Fix BrokenPipeError handling in cqi_over_socketio --- app/corpora/cqi_over_sio/cqi.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/corpora/cqi_over_sio/cqi.py b/app/corpora/cqi_over_sio/cqi.py index 2e483b21..862cae46 100644 --- a/app/corpora/cqi_over_sio/cqi.py +++ b/app/corpora/cqi_over_sio/cqi.py @@ -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,