diff --git a/lib/pool.py b/lib/pool.py index 0fbca902..c9d38a18 100644 --- a/lib/pool.py +++ b/lib/pool.py @@ -174,9 +174,9 @@ class ThreadedConnectionPool(AbstractConnectionPool): of psycopg2 """ + super().__init__(minconn, maxconn, *args, **kwargs) + import threading - AbstractConnectionPool.__init__( - self, minconn, maxconn, *args, **kwargs) self._lock = threading.Lock() def getconn(self, key=None):