We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 878d1f2 commit c6af108Copy full SHA for c6af108
src/databricks/sql/thrift_backend.py
@@ -154,7 +154,7 @@ def __init__(
154
155
timeout = 60 if kwargs.get("_socket_timeout") is None else kwargs.get("_socket_timeout")
156
# setTimeout defaults to 60 seconds and is expected in ms
157
- self._transport.setTimeout(float(timeout) * 1000.0)
+ self._transport.setTimeout(timeout and (float(timeout) * 1000.0))
158
159
self._transport.setCustomHeaders(dict(http_headers))
160
protocol = thrift.protocol.TBinaryProtocol.TBinaryProtocol(self._transport)
0 commit comments