changeset d45dd226ac5c in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=d45dd226ac5c
description:
        Do not log HTTPException in with_transaction

        issue11482
        review443091003
diffstat:

 trytond/protocols/wrappers.py |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 48bad78f99b0 -r d45dd226ac5c trytond/protocols/wrappers.py
--- a/trytond/protocols/wrappers.py     Tue May 10 15:24:37 2022 +0200
+++ b/trytond/protocols/wrappers.py     Thu May 19 22:00:57 2022 +0200
@@ -197,7 +197,9 @@
                             continue
                         logger.error('%s', request, exc_info=True)
                         raise
-                    except Exception:
+                    except Exception as e:
+                        if isinstance(e, HTTPException):
+                            raise
                         logger.error('%s', request, exc_info=True)
                         raise
                     # Need to commit to unlock SQLite database

Reply via email to