Skip to content

Commit bac27e0

Browse files
committed
json.decoder.JSONDecodeError is not in Python 2
1 parent a3e85fc commit bac27e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msal/authority.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, authority_url, http_client, validate_authority=True):
8383
openid_config = tenant_discovery(
8484
tenant_discovery_endpoint,
8585
self.http_client)
86-
except json.decoder.JSONDecodeError:
86+
except ValueError: # json.decoder.JSONDecodeError in Py3 subclasses this
8787
raise ValueError(
8888
"Unable to get authority configuration for {}. "
8989
"Authority would typically be in a format of "

0 commit comments

Comments
 (0)