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

PoolError is in pool

parent 04342d5d
......@@ -21,6 +21,7 @@
# SOFTWARE.
import psycopg2.extras
import psycopg2.pool
import time
import sys
......@@ -35,7 +36,7 @@ class DBInstance:
try:
self.conn = pool.getconn()
return
except psycopg2.PoolError:
except psycopg2.pool.PoolError:
delay += 0.1
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