Skip to content

Commit 1232b3c

Browse files
committed
Remove specific test message from Cursor.close() error handling
1 parent 120085c commit 1232b3c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/databricks/sql/client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,13 +1179,10 @@ def close(self) -> None:
11791179
self.thrift_backend.close_command(self.active_op_handle)
11801180
except RequestError as e:
11811181
if isinstance(e.args[1], CursorAlreadyClosedError):
1182-
# This is the specific message expected by the test
11831182
logger.info("Operation was canceled by a prior request")
11841183
else:
1185-
# For other types of errors, keep the generic logging
11861184
logging.warning(f"Error closing operation handle: {e}")
11871185
except Exception as e:
1188-
# For non-RequestError exceptions
11891186
logging.warning(f"Error closing operation handle: {e}")
11901187
finally:
11911188
self.active_op_handle = None

0 commit comments

Comments
 (0)