Commit 38c4e41e authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixes to flask error handling.

parent 26199de6
Pipeline #71677 passed with stages
in 13 minutes and 30 seconds
......@@ -98,6 +98,9 @@ def handle(error: Exception):
status_code = getattr(error, 'code', 500)
if not isinstance(status_code, int):
status_code = 500
if status_code < 100:
status_code = 500
name = getattr(error, 'name', 'Internal Server Error')
description = getattr(error, 'description', 'No description available')
data = dict(
......
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