Projet

Général

Profil

Anomalie #4728

La méthode _find() plante sur les options 'disabled'

Ajouté par Daniel Dehennin il y a plus de 11 ans. Mis à jour il y a environ 11 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Début:
18/01/2013
Echéance:
01/02/2013
% réalisé:

100%

Temps estimé:
0.25 h
Temps passé:
Distribution:
EOLE 2.4

Description

L’appel à getpaths() source:tiramisu/config.py?rev=189053a#L583 retourne les path même si les options sont disabled.

L’appel à unwrap_from_path() source:tiramisu/config.py?rev=189053a#L585 lève une exception PropertiesOptionError: trying to access to an option named: logs with properties ['disabled']

Je pense que _find() devrait catcher l’exception et ignorer les variables désactivée.

Révisions associées

Révision 170698a5 (diff)
Ajouté par Daniel Dehennin il y a environ 11 ans

Find breaks on "disabled" property

The exception was raised during unwrap_from_path() call.

  • tiramisu/config.py (_filter_by_attrs): do not catch exception arround
    getattr().
    (_find): continue to next option if unwrap_from_path() raise
    PropertiesOptionError.

Fixes: #4728 @5m

Historique

#1 Mis à jour par Joël Cuissinat il y a environ 11 ans

  • Echéance mis à 01/02/2013

#2 Mis à jour par Gwenael Remond il y a environ 11 ans

  • Statut changé de Nouveau à Résolu
  • Temps estimé mis à 0.25 h

#3 Mis à jour par Gwenael Remond il y a environ 11 ans

  • % réalisé changé de 0 à 100

#4 Mis à jour par Daniel Dehennin il y a environ 11 ans

  • Statut changé de Résolu à À valider
  • Assigné à changé de Gwenael Remond à Daniel Dehennin
  • % réalisé changé de 100 à 80

Le try/except n’est pas à faire dans les filtres mais lors de l’appel unwrap_from_path() source:tiramisu/config.py?rev=189053a#L585

#5 Mis à jour par Daniel Dehennin il y a environ 11 ans

  • Statut changé de À valider à Résolu
  • % réalisé changé de 80 à 100

#6 Mis à jour par Joël Cuissinat il y a environ 11 ans

  • Statut changé de Résolu à Fermé

Formats disponibles : Atom PDF