Skip to content

Commit

Permalink
Fix dbapi error attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Chenzw authored Aug 2, 2024
1 parent 82b1499 commit 1358c08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clickhouse_sqlalchemy/drivers/asynch/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ def __init__(self, asynch):
self.paramstyle = 'pyformat'
self._init_dbapi_attributes()

class Error(Exception):
pass

def _init_dbapi_attributes(self):
self.Error = self.asynch.errors.ClickHouseException
for name in (
'ServerException',
'UnexpectedPacketFromServerError',
Expand Down

0 comments on commit 1358c08

Please sign in to comment.