aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorAlexander_Kabui2024-05-28 17:51:59 +0300
committerAlexander_Kabui2024-08-29 11:50:38 +0300
commita34e4e2f0f19d2d62bb76eb09e6b156fd8d16b46 (patch)
treee0ca768cd153d3d86c3b38f5e17b42eae87eab3f /gn2
parent0b8f01e9dda1339e22bdcb7759bb0252a4e95d8a (diff)
downloadgenenetwork2-a34e4e2f0f19d2d62bb76eb09e6b156fd8d16b46.tar.gz
BugFix: return correct status code for generic exceptions handler.
Diffstat (limited to 'gn2')
-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 215837af..58b092a0 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