Commit 5703fb8f authored by Peter Palfrader's avatar Peter Palfrader

PoolError is in pool

parent 04342d5d
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
# SOFTWARE. # SOFTWARE.
import psycopg2.extras import psycopg2.extras
import psycopg2.pool
import time import time
import sys import sys
...@@ -35,7 +36,7 @@ class DBInstance: ...@@ -35,7 +36,7 @@ class DBInstance:
try: try:
self.conn = pool.getconn() self.conn = pool.getconn()
return return
except psycopg2.PoolError: except psycopg2.pool.PoolError:
delay += 0.1 delay += 0.1
self.conn = pool.getconn() self.conn = pool.getconn()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment