Skip to content

Commit fffac5f

Browse files
committed
walrus again
1 parent 554aeaf commit fffac5f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,7 @@ 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:
402-
if session_id_hex in _clients:
403-
telemetry_client = _clients.pop(session_id_hex)
401+
if (telemetry_client := _clients.pop(session_id_hex, None)) is not None:
404402
logger.debug("Removing telemetry client for connection %s", session_id_hex)
405403
telemetry_client.close()
406404

0 commit comments

Comments
 (0)