Add dependencies and missing exception handling

This commit is contained in:
Patrick Jentsch 2021-11-18 08:39:56 +01:00
parent a2e4fd2df5
commit 904747ec66
2 changed files with 5 additions and 1 deletions

View File

@ -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,

View File

@ -13,6 +13,7 @@ Flask-SocketIO~=5.1
Flask-SQLAlchemy
Flask-WTF
gunicorn
hiredis
jsonpatch
jsonschema
psycopg2