Skip to content

Commit

Permalink
Merge pull request #363 from chlowell/patch-2
Browse files Browse the repository at this point in the history
Fix NameError in ClientApplication exception handler
  • Loading branch information
rayluo authored May 19, 2021
2 parents 9ffecd5 + 76ab93e commit 15c3474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msal/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def __init__(
except ValueError: # Those are explicit authority validation errors
raise
except Exception: # The rest are typically connection errors
if validate_authority and region:
if validate_authority and azure_region:
# Since caller opts in to use region, here we tolerate connection
# errors happened during authority validation at non-region endpoint
self.authority = Authority(
Expand Down

0 comments on commit 15c3474

Please sign in to comment.