Commit 2872e63a authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: more generic error handling

parent c73eef44
Pipeline #93600 passed with stages
in 8 minutes and 31 seconds
......@@ -96,7 +96,9 @@ def handle_db_error(e):
err = json.loads(e.details['hint'])
return jsonify({'type': 'db_error', 'error': err}), 500
return jsonify({'type': 'generic_error', 'error': e.details}), 500
if hasattr(e, 'details'):
return jsonify({'type': 'generic_error', 'error': e.details}), 500
return jsonify({'type': 'generic_error', 'error': e}), 500
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment