details: https://code.tryton.org/tryton/commit/134c3265992e
branch: 7.8
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 31a60f6bb732 -r 134c3265992e 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
@@ -455,7 +455,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(