aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-06 16:40:41 -0500
committerAlexander_Kabui2024-08-28 15:02:45 +0300
commitf0e1c1305f9613f214b40da77de5bd9222f2359e (patch)
tree372ac9b7757f9ab848125821b67bc554812fa884 /gn2
parente4fc0eb4ed80931bbd36f3777b06d9343a2008d0 (diff)
downloadgenenetwork2-f0e1c1305f9613f214b40da77de5bd9222f2359e.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 {