Skip to content

Commit 2a1e6c9

Browse files
committed
Fix Black formatting violations
Apply Black formatting to files modified in previous commits: - src/databricks/sql/common/unified_http_client.py - src/databricks/sql/telemetry/telemetry_client.py Changes are purely cosmetic (quote style consistency). Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
1 parent 471a551 commit 2a1e6c9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/databricks/sql/common/unified_http_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ def request_context(
294294
# DEFENSIVE: Check if pool_manager is None (client closing/closed)
295295
# This prevents AttributeError race condition when telemetry cleanup happens
296296
if pool_manager is None:
297-
logger.debug("HTTP client closing or closed, cannot make request to %s", url)
297+
logger.debug(
298+
"HTTP client closing or closed, cannot make request to %s", url
299+
)
298300
raise RequestError("HTTP client is closing or has been closed")
299301

300302
response = None

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def __del__(self):
445445
close the http client.
446446
"""
447447
try:
448-
if hasattr(self, '_http_client') and self._http_client:
448+
if hasattr(self, "_http_client") and self._http_client:
449449
self._http_client.close()
450450
except Exception:
451451
pass

0 commit comments

Comments
 (0)