changeset 086a5176e373 in trytond:6.4
details: https://hg.tryton.org/trytond?cmd=changeset&node=086a5176e373
description:
Do not log HTTPException in with_transaction
issue11482
review443091003
(grafted from d45dd226ac5ce2b8a45f691e74f9b9a28ee8b2ba)
diffstat:
trytond/protocols/wrappers.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 05cdc08f0190 -r 086a5176e373 trytond/protocols/wrappers.py
--- a/trytond/protocols/wrappers.py Mon May 02 16:25:16 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