Anomalie #4728
La méthode _find() plante sur les options 'disabled'
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
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
Appliqué par commit e2a02c5b7ab6e3c5f5b3bb6319213faef2d20642.
#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
Appliqué par commit 170698a5e355f2b7543b4cbc65289a704a2d93cf.
#6 Mis à jour par Joël Cuissinat il y a environ 11 ans
- Statut changé de Résolu à Fermé