diff --git a/app/corpora/cqi_over_socketio/utils.py b/app/corpora/cqi_over_socketio/utils.py index 04b9f1d0..7cbe07b9 100644 --- a/app/corpora/cqi_over_socketio/utils.py +++ b/app/corpora/cqi_over_socketio/utils.py @@ -35,7 +35,10 @@ def cqi_over_socketio(f): try: return_value = f(**f_args) except BrokenPipeError: - pass + return_value = { + 'code': 500, + 'msg': 'Internal Server Error' + } except cqi.errors.CQiException as e: return_value = { 'code': 500, diff --git a/requirements.txt b/requirements.txt index 8d9b0668..f1afb44a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,6 +13,7 @@ Flask-SocketIO~=5.1 Flask-SQLAlchemy Flask-WTF gunicorn +hiredis jsonpatch jsonschema psycopg2