diff options
author | Alexander_Kabui | 2024-09-02 12:26:42 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-09-02 12:26:42 +0300 |
commit | 3fed119a47aacdca7d8422735add202e593647cd (patch) | |
tree | cb97da579ebe2e97bf72ecd9164bbda15dc87a50 | |
parent | 003837b2e3deae96f912b0912d8000521d9ef9be (diff) | |
download | genenetwork2-3fed119a47aacdca7d8422735add202e593647cd.tar.gz |
Add a return code `500` for gnqa endpoint error.
-rw-r--r-- | gn2/wqflask/views.py | 2 |
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") |