mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 21:13:01 +00:00
get error key or error_description key if not available
Signed-off-by: Greg <werner.greg@gmail.com>
This commit is contained in:
@@ -373,7 +373,11 @@ class HubAuth(SingletonConfigurable):
|
||||
msg = "Failed to check authorization"
|
||||
# pass on error from oauth failure
|
||||
try:
|
||||
description = r.json().get("error")
|
||||
description = (
|
||||
r.json().get("error")
|
||||
if r.json().get("error")
|
||||
else r.json().get("error_description")
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
|
Reference in New Issue
Block a user