Skip to content

Commit dce9268

Browse files
ai: apply changes for #873 (1 review thread)
Addresses: - #3635998296 at src/databricks/sql/client.py:1782 Signed-off-by: peco-engineer-bot[bot] <peco-engineer-bot[bot]@users.noreply.github.com>
1 parent 244563d commit dce9268

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/databricks/sql/client.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,16 @@ def close(self) -> None:
17801780
else:
17811781
logger.warning("close_command on cursor close failed: %s", e)
17821782
except Exception as exc:
1783-
logger.warning("close_command on cursor close failed: %s", exc)
1783+
# Unlike the RequestError branch above (an expected, often
1784+
# transient network failure), reaching here means something we
1785+
# did not anticipate — surface the full traceback so it is
1786+
# diagnosable rather than indistinguishable from a benign
1787+
# network blip.
1788+
logger.warning(
1789+
"close_command on cursor close failed unexpectedly: %s",
1790+
exc,
1791+
exc_info=True,
1792+
)
17841793
self.active_command_id = None
17851794

17861795
@property

0 commit comments

Comments
 (0)