difference between option/optiondescription in PropertiesOptionError message
This commit is contained in:
@ -483,9 +483,14 @@ class Settings(object):
|
||||
opt_or_descr.impl_getname()),
|
||||
props)
|
||||
else:
|
||||
raise PropertiesOptionError(_("trying to access to an option "
|
||||
"named: {0} with properties {1}"
|
||||
"").format(opt_or_descr.impl_getname(),
|
||||
if opt_or_descr.impl_is_optiondescription():
|
||||
opt_type = 'optiondescription'
|
||||
else:
|
||||
opt_type = 'option'
|
||||
raise PropertiesOptionError(_("trying to access to an {0} "
|
||||
"named: {1} with properties {2}"
|
||||
"").format(opt_type,
|
||||
opt_or_descr._name,
|
||||
str(props)), props)
|
||||
|
||||
def setpermissive(self, permissive, opt=None, path=None):
|
||||
|
Reference in New Issue
Block a user