Projet

Général

Profil

0001-workflows-don-t-fail-on-unconfigured-export-to-model.patch

Frédéric Péters, 18 avril 2021 09:22

Télécharger (1,24 ko)

Voir les différences:

Subject: [PATCH] workflows: don't fail on unconfigured export to model action
 (#34365)

 wcs/wf/export_to_model.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
wcs/wf/export_to_model.py
484 484
    directory_name = property(get_directory_name)
485 485

  
486 486
    def apply_template_to_formdata(self, formdata):
487
        assert self.model_file
488 487
        kind = self.model_file_validation(self.model_file)
489 488
        if kind == 'rtf':
490 489
            outstream = self.apply_rtf_template_to_formdata(formdata)
......
733 732
        self.perform_real(formdata, formdata.evolution[-1])
734 733

  
735 734
    def perform_real(self, formdata, evo):
735
        if not self.model_file:
736
            return
736 737
        outstream = self.apply_template_to_formdata(formdata)
737 738
        filename = self.get_filename()
738 739
        content_type = self.model_file.content_type
739
-