changeset d64bbc06e8ce in trytond:6.2
details: https://hg.tryton.org/trytond?cmd=changeset&node=d64bbc06e8ce
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 f8288444c8ae -r d64bbc06e8ce 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