Skip to content

Commit

Permalink
fix(clickhouse): disconnect from clickhouse when computing version
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Feb 8, 2022
1 parent d81cef8 commit 11cbf08
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 84 deletions.
3 changes: 1 addition & 2 deletions ibis/backends/clickhouse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,8 @@ def version(self) -> str:
self.con.connection.force_connect()
try:
info = self.con.connection.server_info
except Exception:
finally:
self.con.connection.disconnect()
raise

return f'{info.version_major}.{info.version_minor}.{info.revision}'

Expand Down
Loading

0 comments on commit 11cbf08

Please sign in to comment.