Skip to content

Commit 61f0dda

Browse files
address comments
1 parent d99fb2e commit 61f0dda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

databricks/sdk/credentials_provider.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ def external_browser(cfg: 'Config') -> Optional[CredentialsProvider]:
215215
try:
216216
credentials.token()
217217
return credentials(cfg)
218+
# TODO: we should ideally use more specific exceptions.
218219
except Exception as e:
219-
logger.warning(f'Failed to refresh cached token: {e}, will init new OAuth login flow')
220+
logger.warning(f'Failed to refresh cached token: {e}. Initiating new OAuth login flow')
220221

221222
oauth_client = OAuthClient(oidc_endpoints=oidc_endpoints,
222223
client_id=client_id,

0 commit comments

Comments
 (0)