Skip to content

Commit

Permalink
Fix NameError in ClientApplication exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
chlowell authored May 19, 2021
1 parent 0c15c75 commit 76ab93e
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 76ab93e

Please sign in to comment.