From d8aa48dbf0be6e488edb426bf767e51168144a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 2 Oct 2026 23:00:51 +0200 Subject: [PATCH] Catch all SubprocessError and OSError when converting report The subprocess run may raises one of those exceptions. Closes #15141 --- trytond/trytond/report/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/report/report.py b/trytond/trytond/report/report.py index 20b99917d1..6800ee5b6c 100644 --- a/trytond/trytond/report/report.py +++ b/trytond/trytond/report/report.py @@ -466,7 +466,7 @@ class Report(URLMixin, PoolBase): 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(