reqpath is get from option, so reqpath ever exists, cannot raise AttributeError
authorEmmanuel Garette <egarette@cadoles.com>
Thu, 22 Aug 2013 20:52:29 +0000 (22:52 +0200)
committerEmmanuel Garette <egarette@cadoles.com>
Thu, 22 Aug 2013 20:52:29 +0000 (22:52 +0200)
tiramisu/setting.py

index 0b7551c..852e833 100644 (file)
@@ -463,9 +463,6 @@ class Settings(object):
                     # transitive action, force expected
                     value = expected[0]
                     inverse = False
-                except AttributeError:
-                    raise AttributeError(_("required option not found: "
-                                           "{0}").format(reqpath))
                 if (not inverse and
                         value in expected or
                         inverse and value not in expected):