Skip to content

Commit 6091e40

Browse files
author
Mikhail Kaplenko
committed
This statement without a specific error code (only index) leads to KeyError Exception in 258 line, when attempt to get error code with zero key mapping in the linux ubuntu system (or others)..
1 parent d92b92a commit 6091e40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tarantool/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def check(): # Check that connection is alive
241241
return
242242

243243
attempt = 0
244-
last_errno = 0
244+
last_errno = errno.ECONNRESET
245245
while True:
246246
time.sleep(self.reconnect_delay)
247247
try:

0 commit comments

Comments
 (0)