From 76ab93e42d59ff5175df917a0bcfc74079cec8e1 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Wed, 19 May 2021 09:47:57 -0700 Subject: [PATCH] Fix NameError in ClientApplication exception handler --- msal/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msal/application.py b/msal/application.py index 7d7af50f..c4cbbcd2 100644 --- a/msal/application.py +++ b/msal/application.py @@ -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(