Skip to content

Commit 9004ac7

Browse files
committed
fixed urllib3 issue
1 parent 22bb135 commit 9004ac7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/databricks/sql/telemetry/telemetry_push_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
from typing import Dict, Any, Optional
1212
from contextlib import contextmanager
1313

14-
from urllib3 import BaseHTTPResponse
14+
try:
15+
from urllib3 import BaseHTTPResponse
16+
except ImportError:
17+
from urllib3 import HTTPResponse as BaseHTTPResponse
1518
from pybreaker import CircuitBreakerError
1619

1720
from databricks.sql.common.unified_http_client import UnifiedHttpClient

0 commit comments

Comments
 (0)