From a34e4e2f0f19d2d62bb76eb09e6b156fd8d16b46 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 28 May 2024 17:51:59 +0300 Subject: BugFix: return correct status code for generic exceptions handler. --- gn2/wqflask/views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gn2') 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 -- cgit v1.2.3