Projet

Général

Profil

Bug #22466

saut et condition incomplète

Ajouté par Frédéric Péters il y a environ 6 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
12 mars 2018
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description


Exception:
  type = '<type 'exceptions.SyntaxError'>', value = 'unexpected EOF while parsing (<string>, line 0)'

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/wf/jump.py", line 229, in must_jump
   227                 condition = self.condition
   228                 global_variables = get_publisher().get_global_eval_dict()
>  229                 get_publisher().notify_of_exception(sys.exc_info())
   230                 must_jump = False
   231

  locals:
     condition = {'type': 'python', 'value': ''}

Fichiers

Révisions associées

Révision fe2b701f (diff)
Ajouté par Frédéric Péters il y a environ 6 ans

workflows: do not crash on incomplete jump condition (#22466)

Révision 39203921 (diff)
Ajouté par Frédéric Péters il y a environ 6 ans

misc: do not migrate empty strings to python conditions (#22466)

Historique

#1

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

#2

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

(rapide grep "if condition" et pas d'autres occurences)

#3

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

Ack

#4

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

Cet autre patch, pour en amont ne pas créer de manière généralisée des conditions python en présence d'une chaine vide.

#5

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

Frédéric Péters a écrit :

Cet autre patch, pour en amont ne pas créer de manière généralisée des conditions python en présence d'une chaine vide.

post_condition['condition'] = {} dans un cas et self.condition = None dans l'autre, je suis pas fan. {} dans les deux cas ?

#7

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

Ack

#8

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

  • Statut changé de En cours à Résolu (à déployer)
commit 392039216ab5ca91faf9c687c329b6e7578eff68
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Mar 12 14:17:49 2018 +0100

    misc: do not migrate empty strings to python conditions (#22466)

commit fe2b701f7dd51a0ec30e87a963e3bb3668a02698
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Mar 12 14:09:00 2018 +0100

    workflows: do not crash on incomplete jump condition (#22466)
#9

Mis à jour par Frédéric Péters il y a plus de 5 ans

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

Formats disponibles : Atom PDF