From e195a0fb93fa6346feb9d0bd8c1f5a39c36eec76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 1 Dec 2023 11:32:57 +0100 Subject: [PATCH] Add DatabaseTimeoutError to postgis backend 173ecc4f452d add a new database error so it must also be defined for postgis. --- trytond-gis/trytond_gis/postgis/__init__.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/trytond-gis/trytond_gis/postgis/__init__.py b/trytond-gis/trytond_gis/postgis/__init__.py index 75dbefc877..be62f08573 100644 --- a/trytond-gis/trytond_gis/postgis/__init__.py +++ b/trytond-gis/trytond_gis/postgis/__init__.py @@ -1,11 +1,17 @@ # This file is part of trytond_gis. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.backend.postgresql.database import ( - DatabaseDataError, DatabaseIntegrityError, DatabaseOperationalError) + DatabaseDataError, DatabaseIntegrityError, DatabaseOperationalError, + DatabaseTimeoutError) from .database import Database from .table import TableHandler __all__ = [ - Database, TableHandler, - DatabaseIntegrityError, DatabaseDataError, DatabaseOperationalError] + Database, + DatabaseIntegrityError, + DatabaseDataError, + DatabaseOperationalError, + DatabaseTimeoutError, + TableHandler, + ]