diff options
author | Alexander_Kabui | 2024-05-28 17:51:59 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-05-28 17:56:48 +0300 |
commit | 632dbb8921228b3f0973043dde545fecca572691 (patch) | |
tree | 0a5d0511aff56b10f0723c9b49eb04850273057a /gn2 | |
parent | ae94536ac15f71731a2ddcbbab89ed059b7284fb (diff) | |
download | genenetwork2-632dbb8921228b3f0973043dde545fecca572691.tar.gz |
BugFix: return correct status code for generic exceptions handler.
Diffstat (limited to 'gn2')
-rw-r--r-- | gn2/wqflask/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 3156e07c..a5376a69 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 |