From d2f101b7bbd99375c1c85e2ff32a3c067bea1e67 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sun, 22 Sep 2013 21:54:07 +0200 Subject: [PATCH] didnot getattr a second time in find if not needed --- tiramisu/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tiramisu/config.py b/tiramisu/config.py index 261f6ed..f1b2851 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -325,15 +325,15 @@ class SubConfig(object): continue if not _filter_by_value(): continue + if not _filter_by_type(): + continue #remove option with propertyerror, ... - if check_properties: + if byvalue is None and check_properties: try: value = getattr(self, path) except PropertiesOptionError: # a property restricts the access of the value continue - if not _filter_by_type(): - continue if type_ == 'value': retval = value elif type_ == 'path':