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)