aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-06 16:40:41 -0500
committerFrederick Muriuki Muriithi2024-06-06 16:40:41 -0500
commit86db47465fbe2c0d7e4f489b53ce21d33db8e8d2 (patch)
tree64bbc784c37d1d5cd800388e1abf86378a207622 /gn2
parentc1af1940cca1ae54d424632e8c5f06b55cae071a (diff)
downloadgenenetwork2-86db47465fbe2c0d7e4f489b53ce21d33db8e8d2.tar.gz
Fix displayed error message
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/oauth2/request_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/oauth2/request_utils.py b/gn2/wqflask/oauth2/request_utils.py
index 1cdc465f..456aba2b 100644
--- a/gn2/wqflask/oauth2/request_utils.py
+++ b/gn2/wqflask/oauth2/request_utils.py
@@ -36,7 +36,7 @@ def process_error(error: Response,
try:
err = error.json()
msg = err.get(
- "error", err.get("error_description", f"{error.reason}"))
+ "error_message", err.get("error_description", f"{error.reason}"))
except simplejson.errors.JSONDecodeError as _jde:
msg = message
return {