Projet

Général

Profil

Bug #34365

sauter silencieusement une action de création de document qui n'a pas de document attaché

Ajouté par Frédéric Péters il y a presque 5 ans. Mis à jour il y a presque 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
26 juin 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Plutôt que crasher,

Exception:
  type = '<type 'exceptions.AssertionError'>', value = ''

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/wf/export_to_model.py", line 388, in apply_template_to_formdata
   386
   387     def apply_template_to_formdata(self, formdata):
>  388         assert self.model_file
   389         kind = self.model_file_validation(self.model_file)
   390         if kind == 'rtf':

  locals:
     formdata = <Lsp-Inscription-Des-Auteurs-En-Dedicace-Categorie-Litterature-Generale-1 'LSP - Inscription des auteurs en d\xc3\xa9dicace (cat\xc3\xa9gorie Litt\xc3\xa9rature g\xc3\xa9n\xc3\xa9rale) 2019 - n\xc2\xb0248-1'
id:1>
     self = <wcs.wf.export_to_model.ExportToModel object at 0x7fc052032e50>

  File "/usr/lib/python2.7/dist-packages/wcs/wf/export_to_model.py", line 516, in perform_real
   514
   515     def perform_real(self, formdata, evo):
>  516         outstream = self.apply_template_to_formdata(formdata)
   517         filename = self.get_filename()
   518         content_type = self.model_file.content_type

  locals:
     evo = <wcs.formdata.Evolution object at 0x7fc04f984a10>
     formdata = <Lsp-Inscription-Des-Auteurs-En-Dedicace-Categorie-Litterature-Generale-1 'LSP - Inscription des auteurs en d\xc3\xa9dicace (cat\xc3\xa9gorie Litt\xc3\xa9rature g\xc3\xa9n\xc3\xa9rale) 2019 - n\xc2\xb0248-1'
id:1>
     self = <wcs.wf.export_to_model.ExportToModel object at 0x7fc052032e50>

  File "/usr/lib/python2.7/dist-packages/wcs/wf/export_to_model.py", line 513, in perform
   511         if self.method == 'interactive':
   512             return
>  513         self.perform_real(formdata, formdata.evolution[-1])
   514
   515     def perform_real(self, formdata, evo):

  locals:
     formdata = <Lsp-Inscription-Des-Auteurs-En-Dedicace-Categorie-Litterature-Generale-1 'LSP - Inscription des auteurs en d\xc3\xa9dicace (cat\xc3\xa9gorie Litt\xc3\xa9rature g\xc3\xa9n\xc3\xa9rale) 2019 - n\xc2\xb0248-1'
id:1>
     self = <wcs.wf.export_to_model.ExportToModel object at 0x7fc052032e50>

Fichiers

Révisions associées

Révision e407a3c8 (diff)
Ajouté par Frédéric Péters il y a presque 3 ans

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

Historique

#2

Mis à jour par Frédéric Péters il y a presque 3 ans

Voilà totalement trivial.

#3

Mis à jour par Thomas Noël il y a presque 3 ans

  • Statut changé de Solution proposée à Solution validée
#4

Mis à jour par Frédéric Péters il y a presque 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit e407a3c8af20d5e5df199104d72cca30a37e2c14
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Apr 18 09:21:10 2021 +0200

    workflows: don't fail on unconfigured export to model action (#34365)
#5

Mis à jour par Frédéric Péters il y a presque 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF