Skip to content

Commit b77208a

Browse files
committed
old stuff without walrus seems to fail
1 parent fffac5f commit b77208a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,9 @@ def close_telemetry_client(session_id_hex):
398398
"""Remove the telemetry client for a specific connection"""
399399
global _initialized, _executor
400400
with _lock:
401-
if (telemetry_client := _clients.pop(session_id_hex, None)) is not None:
401+
# if (telemetry_client := _clients.pop(session_id_hex, None)) is not None:
402+
if session_id_hex in _clients:
403+
telemetry_client = _clients.pop(session_id_hex)
402404
logger.debug("Removing telemetry client for connection %s", session_id_hex)
403405
telemetry_client.close()
404406

0 commit comments

Comments
 (0)