Projet

Général

Profil

0001-wf-explicitly-crash-when-temporary-export-files-cann.patch

Paul Marillonnet, 30 juillet 2020 11:13

Télécharger (907 octets)

Voir les différences:

Subject: [PATCH] wf: explicitly crash when temporary export files cannot be
 created (#45565)

 wcs/wf/export_to_model.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/wf/export_to_model.py
69 69
    subprocess.check_call(['which', 'libreoffice'], stdout=subprocess.DEVNULL)
70 70

  
71 71
    def transform_to_pdf(instream):
72
        temp_dir = tempfile.mkdtemp()
72 73
        try:
73
            temp_dir = tempfile.mkdtemp()
74 74
            with tempfile.NamedTemporaryFile(dir=temp_dir) as infile:
75 75
                while True:
76 76
                    chunk = instream.read(100000)
77
-