aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-08-27 11:34:06 +0300
committerBonfaceKilz2024-08-29 10:42:16 +0300
commitb707cb8c02908c975520f532c0fc09c880bfd029 (patch)
treee87caa763e775af51b3ef1d50f5d99433c50be48
parenta0681e15a6c3df598a4cf7a1bb31576f58fe7efc (diff)
downloadgenenetwork3-b707cb8c02908c975520f532c0fc09c880bfd029.tar.gz
Return the correct status error code for url errors.
* gn3/errors.py (url_server_error): Return a 500 http status code for URL server errors. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/errors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/errors.py b/gn3/errors.py
index e9056d4..525d703 100644
--- a/gn3/errors.py
+++ b/gn3/errors.py
@@ -51,7 +51,7 @@ def url_server_error(pnf):
return jsonify(add_trace(pnf, {
"error": f"URLLib Error no: {pnf.reason.errno}",
"error_description": pnf.reason.strerror,
- }))
+ })), 500
def handle_authorisation_error(exc: AuthorisationError):