changeset 7e100e82d6f0 in trytond:6.0
details: https://hg.tryton.org/trytond?cmd=changeset&node=7e100e82d6f0
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 6401f285a879 -r 7e100e82d6f0 trytond/protocols/wrappers.py
--- a/trytond/protocols/wrappers.py Wed Apr 27 17:51:52 2022 +0200
+++ b/trytond/protocols/wrappers.py Thu May 19 22:00:57 2022 +0200
@@ -195,7 +195,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