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.
1 parent 205f4b2 commit 53f67ceCopy full SHA for 53f67ce
src/databricks/sql/auth/authenticators.py
@@ -88,9 +88,11 @@ def _initial_get_token(self):
88
)
89
self._access_token = access_token
90
self._refresh_token = refresh_token
91
- self._oauth_persistence.persist(
92
- self._hostname, OAuthToken(access_token, refresh_token)
93
- )
+
+ if self._oauth_persistence:
+ self._oauth_persistence.persist(
94
+ self._hostname, OAuthToken(access_token, refresh_token)
95
+ )
96
except Exception as e:
97
logging.error(f"unexpected error in oauth initialization", e, exc_info=True)
98
raise e
0 commit comments