details: https://code.tryton.org/tryton/commit/11c958d3ef7a
branch: 8.0
user: Cédric Krier <[email protected]>
date: Fri Oct 02 23:00:51 2026 +0200
description:
Catch all SubprocessError and OSError when converting report
The subprocess run may raises one of those exceptions.
Closes #15141
(grafted from 2dfbdcb8e6969bbf8d2021dab131386974cc5515)
diffstat:
trytond/trytond/report/report.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 21c71046b053 -r 11c958d3ef7a trytond/trytond/report/report.py
--- a/trytond/trytond/report/report.py Tue Oct 06 13:12:24 2026 +0200
+++ b/trytond/trytond/report/report.py Fri Oct 02 23:00:51 2026 +0200
@@ -464,7 +464,7 @@
time.sleep(0.02 * (retry - count))
try:
subprocess.run(args, timeout=timeout, check=True)
- except subprocess.CalledProcessError:
+ except (subprocess.SubprocessError, OSError):
if count:
continue
logger.error(