aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-02 12:26:42 +0300
committerAlexander_Kabui2024-09-02 12:26:42 +0300
commit3fed119a47aacdca7d8422735add202e593647cd (patch)
treecb97da579ebe2e97bf72ecd9164bbda15dc87a50
parent003837b2e3deae96f912b0912d8000521d9ef9be (diff)
downloadgenenetwork2-3fed119a47aacdca7d8422735add202e593647cd.tar.gz
Add a return code `500` for gnqa endpoint error.
-rw-r--r--gn2/wqflask/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index 4421011b..f0fa2750 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -286,7 +286,7 @@ def gnqna():
).either(
error_page, __success__)
except Exception as error:
- return flask.jsonify({"error": str(error)})
+ return flask.jsonify({"error": str(error)}), 500
return render_template("gnqa.html")