mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 21:43: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"
|
msg = "Failed to check authorization"
|
||||||
# pass on error from oauth failure
|
# pass on error from oauth failure
|
||||||
try:
|
try:
|
||||||
description = r.json().get("error")
|
description = (
|
||||||
|
r.json().get("error")
|
||||||
|
if r.json().get("error")
|
||||||
|
else r.json().get("error_description")
|
||||||
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user