Projet

Général

Profil

Bug #43515

get_status_manual_actions, 'NoneType' object is not iterable (bis)

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

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

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<class 'TypeError'>', value = ''NoneType' object is not iterable'

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/workflows.py", line 1672, in get_status_manual_actions
  1670                 continue
  1671             roles = action.by
> 1672             functions = [x for x in roles if x in (self.parent.roles or [])]
  1673             roles = [x for x in roles if x not in (self.parent.roles or [])]
  1674             if functions or roles:

  locals:
     StatusAction = <class 'wcs.workflows.WorkflowStatus.get_status_manual_actions.<locals>.StatusAction'>
     action = <ChoiceWorkflowStatusItem 1>
     actions = []
     roles = None
     self = <WorkflowStatus 22 'Attente PMS/DT...'>
     status_id = '22'

c'est role qui est None, pas self.parent.roles...


Fichiers

Révisions associées

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

workflows: get list of manual actions in case of undefined roles (bis) (#43515)

Révision 315a6c9b (diff)
Ajouté par Frédéric Péters il y a presque 4 ans

workflows: get list of manual actions in case of undefined roles (bis) (#43515)

Historique

#1

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

#2

Mis à jour par Nicolas Roche il y a presque 4 ans

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit ef6699be4a9d33ad64e26bd067914bde24b5b575
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Jun 2 09:13:28 2020 +0200

    workflows: get list of manual actions in case of undefined roles (bis) (#43515)
#4

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

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

Formats disponibles : Atom PDF