Commit 7c027bb5 authored by janis.streib's avatar janis.streib 🦉
Browse files

FIXUP

parent 2872e63a
Pipeline #93601 passed with stages
in 9 minutes and 8 seconds
......@@ -105,7 +105,9 @@ def handle_db_error(e):
def handle_generic(e):
if app.config.get('DEBUG', False):
raise e
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
@app.context_processor
......
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