Skip to content

Commit

Permalink
Merge pull request #247 from NikiforovG/master
Browse files Browse the repository at this point in the history
create error message before disconnect
  • Loading branch information
xzkostyan committed Aug 26, 2021
2 parents 78e389e + fe45ba2 commit 203650e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clickhouse_driver/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@ def receive_hello(self):
raise self.receive_exception()

else:
self.disconnect()
message = self.unexpected_packet_message('Hello or Exception',
packet_type)
self.disconnect()
raise errors.UnexpectedPacketFromServerError(message)

def ping(self):
Expand Down

0 comments on commit 203650e

Please sign in to comment.