There was an error while loading. Please reload this page.
1 parent 244563d commit dce9268Copy full SHA for dce9268
1 file changed
src/databricks/sql/client.py
@@ -1780,7 +1780,16 @@ def close(self) -> None:
1780
else:
1781
logger.warning("close_command on cursor close failed: %s", e)
1782
except Exception as exc:
1783
- logger.warning("close_command on cursor close failed: %s", exc)
+ # 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
+ )
1793
self.active_command_id = None
1794
1795
@property
0 commit comments