remove some try/except
This commit is contained in:
@ -488,21 +488,21 @@ class Settings(object):
|
||||
if properties != frozenset():
|
||||
props = list(properties)
|
||||
if 'frozen' in properties:
|
||||
raise PropertiesOptionError(_('cannot change the value for '
|
||||
'option {0} this option is'
|
||||
' frozen').format(
|
||||
opt_or_descr.impl_getname()),
|
||||
props)
|
||||
return PropertiesOptionError(_('cannot change the value for '
|
||||
'option {0} this option is'
|
||||
' frozen').format(
|
||||
opt_or_descr.impl_getname()),
|
||||
props)
|
||||
else:
|
||||
if is_descr:
|
||||
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)
|
||||
return 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