We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d60e31e + 640d88a commit 429f121Copy full SHA for 429f121
msal/application.py
@@ -1207,7 +1207,9 @@ def _acquire_token_silent_from_cache_and_possibly_refresh_it(
1207
if (result and "error" not in result) or (not access_token_from_cache):
1208
return result
1209
except: # The exact HTTP exception is transportation-layer dependent
1210
- logger.exception("Refresh token failed") # Potential AAD outage?
+ # Typically network error. Potential AAD outage?
1211
+ if not access_token_from_cache: # It means there is no fall back option
1212
+ raise # We choose to bubble up the exception
1213
return access_token_from_cache
1214
1215
def _acquire_token_silent_by_finding_rt_belongs_to_me_or_my_family(
0 commit comments