diff --git a/trytond/trytond/backend/postgresql/database.py b/trytond/trytond/backend/postgresql/database.py index 59de18962b..126998fe08 100644 --- a/trytond/trytond/backend/postgresql/database.py +++ b/trytond/trytond/backend/postgresql/database.py @@ -259,7 +259,7 @@ class Database(DatabaseInterface): for count in range(retry, -1, -1): try: conn = self._connpool.getconn() - except PoolError: + except (PoolError, DatabaseOperationalError): if count and not self._connpool.closed: logger.info('waiting a connection') time.sleep(1)