From 6091e406f916416b40f3db3f8280d515eccbd2d4 Mon Sep 17 00:00:00 2001 From: Mikhail Kaplenko Date: Thu, 28 Jan 2016 16:37:22 +0300 Subject: [PATCH] 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).. --- tarantool/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarantool/connection.py b/tarantool/connection.py index aafdb89a..e6b102e0 100644 --- a/tarantool/connection.py +++ b/tarantool/connection.py @@ -241,7 +241,7 @@ def check(): # Check that connection is alive return attempt = 0 - last_errno = 0 + last_errno = errno.ECONNRESET while True: time.sleep(self.reconnect_delay) try: