Skip to content

Commit 76ce5ce

Browse files
committed
remove excess close call
1 parent 84ec33a commit 76ce5ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/databricks/sql/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ def read(self) -> Optional[OAuthToken]:
284284
if hasattr(self, "session")
285285
else None,
286286
)
287-
self.http_client.close()
288287
raise e
289288

290289
self.use_inline_params = self._set_use_inline_params_with_warning(
@@ -363,9 +362,8 @@ def __exit__(self, exc_type, exc_value, traceback):
363362
def __del__(self):
364363
if self.open:
365364
logger.debug(
366-
"Closing unclosed connection for session " "{}".format(
367-
self.get_session_id_hex()
368-
)
365+
"Closing unclosed connection for session "
366+
"{}".format(self.get_session_id_hex())
369367
)
370368
try:
371369
self._close(close_cursors=False)

0 commit comments

Comments
 (0)