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 341991d commit c9c8793Copy full SHA for c9c8793
src/databricks/sql/telemetry/telemetry_client.py
@@ -401,11 +401,9 @@ def initialize_telemetry_client(
401
@staticmethod
402
def get_telemetry_client(session_id_hex):
403
"""Get the telemetry client for a specific connection"""
404
- try:
405
- return TelemetryClientFactory._clients[session_id_hex]
406
- except Exception as e:
407
- logger.debug("Failed to get telemetry client: %s", e)
408
- return NoopTelemetryClient()
+ return TelemetryClientFactory._clients.get(
+ session_id_hex, NoopTelemetryClient()
+ )
409
410
411
def close(session_id_hex):
0 commit comments