Skip to content

Commit 15c3474

Browse files
authored
Merge pull request #363 from chlowell/patch-2
Fix NameError in ClientApplication exception handler
2 parents 9ffecd5 + 76ab93e commit 15c3474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msal/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def __init__(
299299
except ValueError: # Those are explicit authority validation errors
300300
raise
301301
except Exception: # The rest are typically connection errors
302-
if validate_authority and region:
302+
if validate_authority and azure_region:
303303
# Since caller opts in to use region, here we tolerate connection
304304
# errors happened during authority validation at non-region endpoint
305305
self.authority = Authority(

0 commit comments

Comments
 (0)