Julien Cristau pushed to branch master at snapshot / snapshot
Commits:
-
1160d9c7
by Baptiste Beauplat at 2022-09-28T19:32:02+02:00
-
370be955
by Julien Cristau at 2022-09-28T17:55:44+00:00
1 changed file:
Changes:
... | ... | @@ -99,7 +99,8 @@ class DBInstance: |
99 | 99 | def close(self):
|
100 | 100 | try:
|
101 | 101 | self.pool.putconn(self.conn)
|
102 | - except (psycopg2.OperationalError, psycopg2.InterfaceError):
|
|
102 | + except (psycopg2.OperationalError, psycopg2.InterfaceError,
|
|
103 | + psycopg2.pool.PoolError):
|
|
103 | 104 | # Excluding from coverage (see above)
|
104 | 105 | if not self.conn.closed: # pragma: no cover
|
105 | 106 | self.pool.putconn(self.conn, close=True) |