Skip to content

Commit 71ba9d5

Browse files
chore: use get_handle() instead of private session attribute in client
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent e1a2c0e commit 71ba9d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/databricks/sql/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def get_id_hex(self) -> str:
134134
def close(self) -> None:
135135
"""Close the underlying session."""
136136
logger.info(f"Closing session {self.get_id_hex()}")
137-
if not self.open:
137+
if not self.is_open:
138138
logger.debug("Session appears to have been closed already")
139139
return
140140

0 commit comments

Comments
 (0)