details: https://code.tryton.org/tryton/commit/2dfbdcb8e696
branch: default
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
diffstat:
trytond/trytond/report/report.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r ba1fb062e5bc -r 2dfbdcb8e696 trytond/trytond/report/report.py
--- a/trytond/trytond/report/report.py Fri Oct 02 16:07:28 2026 +0200
+++ b/trytond/trytond/report/report.py Fri Oct 02 23:00:51 2026 +0200
@@ -466,7 +466,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(