We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b77208a commit 733c288Copy full SHA for 733c288
src/databricks/sql/telemetry/telemetry_client.py
@@ -399,8 +399,8 @@ def close_telemetry_client(session_id_hex):
399
global _initialized, _executor
400
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)
+ telemetry_client = _clients.pop(session_id_hex, None)
+ if telemetry_client is not None:
404
logger.debug("Removing telemetry client for connection %s", session_id_hex)
405
telemetry_client.close()
406
0 commit comments