From 32e8aaab74ec7f940d5a9728c4ad35328ae02d13 Mon Sep 17 00:00:00 2001 From: John Chumnanvech Date: Thu, 13 Aug 2015 13:03:07 -0500 Subject: [PATCH] Fixed error handling when getting a connection. --- momoko/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/momoko/connection.py b/momoko/connection.py index 1496454..cda92fc 100644 --- a/momoko/connection.py +++ b/momoko/connection.py @@ -556,7 +556,7 @@ def on_ping_done(ping_fut): try: ping_fut.result() except psycopg2.Error as error: - ping_future.set_exc_info(error) + ping_future.set_exception(error) self.putconn(conn) else: ping_future.set_result(conn)