aboutsummaryrefslogtreecommitdiff
path: root/uploader/oauth2/client.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-16 15:47:45 -0500
committerFrederick Muriuki Muriithi2024-09-16 15:47:45 -0500
commitf0110a1cab4032d2f9fe7d3193178e9ec2383a68 (patch)
treebe6fcbde0c8898c0e8eca7bf64f36e8f8c9a115b /uploader/oauth2/client.py
parente0d831a003af8732dfc281a263d34a0ed8918ab5 (diff)
downloadgn-uploader-f0110a1cab4032d2f9fe7d3193178e9ec2383a68.tar.gz
Fix minor bugs and linting and typing errors.
Diffstat (limited to 'uploader/oauth2/client.py')
-rw-r--r--uploader/oauth2/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/uploader/oauth2/client.py b/uploader/oauth2/client.py
index e119cc3..70a32ff 100644
--- a/uploader/oauth2/client.py
+++ b/uploader/oauth2/client.py
@@ -61,7 +61,7 @@ def __update_auth_server_jwks__(jwks) -> KeySet:
def auth_server_jwks() -> KeySet:
"""Fetch the auth-server JSON Web Keys information."""
- _jwks = session.session_info().get("auth_server_jwks")
+ _jwks = session.session_info().get("auth_server_jwks") or {}
if bool(_jwks):
return __update_auth_server_jwks__({
"last-updated": _jwks["last-updated"],