Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wang-1990 committed Dec 10, 2024
1 parent d99fb2e commit 61f0dda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion databricks/sdk/credentials_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ def external_browser(cfg: 'Config') -> Optional[CredentialsProvider]:
try:
credentials.token()
return credentials(cfg)
# TODO: we should ideally use more specific exceptions.
except Exception as e:
logger.warning(f'Failed to refresh cached token: {e}, will init new OAuth login flow')
logger.warning(f'Failed to refresh cached token: {e}. Initiating new OAuth login flow')

oauth_client = OAuthClient(oidc_endpoints=oidc_endpoints,
client_id=client_id,
Expand Down

0 comments on commit 61f0dda

Please sign in to comment.