Skip to content

Commit 0034d46

Browse files
allow passage of MaxRetryError
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 08827ef commit 0034d46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/databricks/sql/auth/thrift_http_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ def make_rest_request(
330330
else:
331331
raise ValueError("No response received from server")
332332

333+
except urllib3.exceptions.MaxRetryError:
334+
# Let MaxRetryError pass through without wrapping for test compatibility
335+
raise
333336
except urllib3.exceptions.HTTPError as e:
334337
error_message = f"REST HTTP request failed: {str(e)}"
335338
logger.error(error_message)

0 commit comments

Comments
 (0)