Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Fixed error handling when getting a connection. #115

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion momoko/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down