Projet

Général

Profil

Bug #52785

exception sur gabarit de délai d'action globale à None

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
06 avril 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

  type = '<class 'TypeError'>', value = 'argument of type 'NoneType' is not iterable'

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/qommon/template.py", line 480, in __init__
   478         self.raises = raises
   479
>  480         if ('{{' in value or '{%' in value) and not ezt_only:  # Django template
   481             self.render = self.django_render
   482             if autoescape is False:

  locals:
     autoescape = False
     ezt_format = 'raw'
     ezt_only = False
     raises = False
     self = <wcs.qommon.template.Template object at 0x7f7c48667390>
     value = None

  File "/usr/lib/python3/dist-packages/wcs/workflows.py", line 1299, in must_trigger
  1297         elif self.anchor == 'template':
  1298             variables = get_publisher().substitutions.get_context_variables(mode='lazy')
> 1299             anchor_date = Template(self.anchor_template, autoescape=False).render(variables)
  1300         elif self.anchor == 'python':
  1301             variables = get_publisher().substitutions.get_context_variables()

Fichiers

Révisions associées

Révision 5539d199 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

workflows: don't fail on incomplete global anchor date template (#52785)

Historique

#1

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

#2

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

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit 5539d1997f21dfee8539a4643c65b262d52364e1
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Apr 6 17:28:51 2021 +0200

    workflows: don't fail on incomplete global anchor date template (#52785)
#4

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

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

Formats disponibles : Atom PDF