Skip to content

Commit cfecce1

Browse files
committed
Fixed the exception handler calls close() on _TelemetryClientHolder objects instead of accessing the client inside them.
1 parent d2ae1e8 commit cfecce1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ def _handle_unhandled_exception(cls, exc_type, exc_value, exc_traceback):
542542
logger.debug("Handling unhandled exception: %s", exc_type.__name__)
543543

544544
clients_to_close = list(cls._clients.values())
545-
for client in clients_to_close:
546-
client.close()
545+
for holder in clients_to_close:
546+
holder.client.close()
547547

548548
# Call the original exception handler to maintain normal behavior
549549
if cls._original_excepthook:

0 commit comments

Comments
 (0)