Skip to content

Commit e17dd3a

Browse files
committed
fix: Incorrect return code
1 parent ca0a514 commit e17dd3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tarantool/connection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ def check(): # Check that connection is alive
11681168
sock_fd = self._socket.fileno()
11691169
except socket.error as e:
11701170
if e.errno == errno.EBADF:
1171-
return errno.ECONNRESETtuple_value
1171+
return errno.ECONNRESET
11721172
else:
11731173
if os.name == 'nt':
11741174
flag = socket.MSG_PEEK

0 commit comments

Comments
 (0)