aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorAlexander_Kabui2024-05-28 17:51:59 +0300
committerAlexander_Kabui2024-05-28 17:51:59 +0300
commitc7b1210c1a8716ef045a1291bca76c1d822c134f (patch)
treebb143f69311365b64f70a915ab2c8b5d99af28d9 /gn2/wqflask
parent8edf35d35b91ca27f70d958f668589cfda201f52 (diff)
downloadgenenetwork2-c7b1210c1a8716ef045a1291bca76c1d822c134f.tar.gz
BugFix: return correct status code for generic exceptions handler.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index 5bb443c1..5bfcce83 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -137,6 +137,7 @@ def handle_generic_exceptions(e):
stack={formatted_lines},
error_image=animation,
version=current_app.config.get("GN_VERSION")))
+ resp.status_code = exc_type.code or 500
resp.set_cookie(err_msg[:32], animation)
return resp