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 0b7686c commit 4c219daCopy full SHA for 4c219da
src/databricks/sql/client.py
@@ -24,6 +24,7 @@
24
AuthenticationError,
25
ConnectionError,
26
)
27
+from urllib3.exceptions import MaxRetryError
28
from databricks.sql.thrift_api.TCLIService import ttypes
29
from databricks.sql.thrift_backend import ThriftBackend
30
from databricks.sql.utils import (
@@ -307,6 +308,8 @@ def read(self) -> Optional[OAuthToken]:
307
308
self._open_session_resp = self.thrift_backend.open_session(
309
session_configuration, catalog, schema
310
311
+ except (RequestError, MaxRetryError) as e:
312
+ raise
313
except Exception as e:
314
raise ConnectionError(
315
message=f"Failed to establish connection: {str(e)}",
0 commit comments