Project

General

Profile

Anomalie #4728

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

Added by Daniel Dehennin over 7 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
01/18/2013
Due date:
02/01/2013
% Done:

100%

Estimated time:
0.25 h
Spent time:
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.

Associated revisions

Revision 170698a5 (diff)
Added by Daniel Dehennin over 7 years ago

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

History

#1 Updated by Joël Cuissinat over 7 years ago

  • Due date set to 02/01/2013

#2 Updated by Gwenael Remond over 7 years ago

  • Status changed from Nouveau to Résolu
  • Estimated time set to 0.25 h

#3 Updated by Gwenael Remond over 7 years ago

  • % Done changed from 0 to 100

#4 Updated by Daniel Dehennin over 7 years ago

  • Status changed from Résolu to Réouvert
  • Assigned To changed from Gwenael Remond to Daniel Dehennin
  • % Done changed from 100 to 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 Updated by Daniel Dehennin over 7 years ago

  • Status changed from Réouvert to Résolu
  • % Done changed from 80 to 100

#6 Updated by Joël Cuissinat over 7 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF