details:   https://code.tryton.org/tryton/commit/e023538f4010
branch:    default
user:      Sergi Almacellas Abellana <[email protected]>
date:      Mon Oct 19 13:07:28 2026 +0200
description:
        Convert the iterator of the report conversion arguments into a list

        Otherwise, if the subprocess call fails, the next call will be made 
using an
        iterator that has already been consumed.

        Closes #15177
diffstat:

 trytond/trytond/report/report.py |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (28 lines):

diff -r 1dee305bc9f3 -r e023538f4010 trytond/trytond/report/report.py
--- a/trytond/trytond/report/report.py  Mon Oct 12 11:36:36 2026 +0200
+++ b/trytond/trytond/report/report.py  Mon Oct 19 13:07:28 2026 +0200
@@ -452,15 +452,15 @@
                 '--convert-to "%(output_extension)s" '
                 '--outdir "%(directory)s" '
                 '"%(input_path)s"')
-            args = map(lambda s: s % {
-                    'directory': directory,
-                    'input_format': input_format,
-                    'input_extension': input_extension,
-                    'input_path': input_path,
-                    'output_format': output_format,
-                    'output_extension': output_extension,
-                    'output_path': output_path,
-                    }, shlex.split(cmd))
+            args = list(map(lambda s: s % {
+                        'directory': directory,
+                        'input_format': input_format,
+                        'input_extension': input_extension,
+                        'input_path': input_path,
+                        'output_format': output_format,
+                        'output_extension': output_extension,
+                        'output_path': output_path,
+                        }, shlex.split(cmd)))
             for count in range(retry, -1, -1):
                 if count != retry:
                     time.sleep(0.02 * (retry - count))

Reply via email to