Skip to content

Commit

Permalink
fix exception name (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisChu authored Oct 20, 2021
1 parent fe2a856 commit 4507075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nebula2/gclient/net/Connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def open(self, ip, port, timeout):
resp = self._connection.verifyClientVersion(VerifyClientVersionReq())
if resp.error_code != ErrorCode.SUCCEEDED:
self._connection._iprot.trans.close()
raise ClientVersionRejectedException(resp.error_msg)
raise ClientServerIncompatibleException(resp.error_msg)

def _reopen(self):
"""reopen the connection
Expand Down

0 comments on commit 4507075

Please sign in to comment.