From ca1a608c13aa1cea4c9aa73c3d9681d73af93e22 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 (grafted from 2dfbdcb8e6969bbf8d2021dab131386974cc5515) --HG-- branch : 8.0 --- 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 2d77b07a7a..a44ae6abcf 100644 --- a/trytond/trytond/report/report.py +++ b/trytond/trytond/report/report.py @@ -464,7 +464,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(