Prefer qubes.exc.QubesValueError over ValueError
This provide clearer information for UI.
This commit is contained in:
parent
010d40dc1e
commit
2c4303efc4
@ -372,7 +372,7 @@ class property(object): # pylint: disable=redefined-builtin,invalid-name
|
||||
return False
|
||||
if lcvalue in ('1', 'yes', 'true', 'on'):
|
||||
return True
|
||||
raise ValueError(
|
||||
raise qubes.exc.QubesValueError(
|
||||
'Invalid literal for boolean property: {!r}'.format(value))
|
||||
|
||||
return bool(value)
|
||||
|
Loading…
Reference in New Issue
Block a user