aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/oauth2
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-24 08:25:15 +0300
committerFrederick Muriuki Muriithi2024-04-24 08:25:15 +0300
commit3f61ab5fcc119a174940eef6a76ec2aa13e9eb17 (patch)
treeb856b68a45f7ca0918dc724834eb4909e4df15e5 /gn2/wqflask/oauth2
parent5474e668539729af3fd8d3434b44d85610643157 (diff)
downloadgenenetwork2-3f61ab5fcc119a174940eef6a76ec2aa13e9eb17.tar.gz
Bug: use dict object on Response object.
Diffstat (limited to 'gn2/wqflask/oauth2')
-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 f92a7f57..1cdc465f 100644
--- a/gn2/wqflask/oauth2/request_utils.py
+++ b/gn2/wqflask/oauth2/request_utils.py
@@ -35,7 +35,7 @@ def process_error(error: Response,
if error.status_code in range(400, 500):
try:
err = error.json()
- msg = error.get(
+ msg = err.get(
"error", err.get("error_description", f"{error.reason}"))
except simplejson.errors.JSONDecodeError as _jde:
msg = message