reqpath is get from option, so reqpath ever exists, cannot raise AttributeError

This commit is contained in:
Emmanuel Garette 2013-08-22 22:52:29 +02:00
parent 04aa4e6bf1
commit f8422c03e8
1 changed files with 0 additions and 3 deletions

View 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):