changeset 30b00b6aae02 in trytond:5.0
details: https://hg.tryton.org/trytond?cmd=changeset&node=30b00b6aae02
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 358eb1aba46a -r 30b00b6aae02 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
@@ -149,7 +149,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