diff options
author | Frederick Muriuki Muriithi | 2024-04-24 08:25:15 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-04-24 08:25:15 +0300 |
commit | 3f61ab5fcc119a174940eef6a76ec2aa13e9eb17 (patch) | |
tree | b856b68a45f7ca0918dc724834eb4909e4df15e5 /gn2/wqflask/oauth2 | |
parent | 5474e668539729af3fd8d3434b44d85610643157 (diff) | |
download | genenetwork2-3f61ab5fcc119a174940eef6a76ec2aa13e9eb17.tar.gz |
Bug: use dict object on Response object.
Diffstat (limited to 'gn2/wqflask/oauth2')
-rw-r--r-- | gn2/wqflask/oauth2/request_utils.py | 2 |
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 |