Catch ValueError when catching :set errors
This commit is contained in:
parent
fcb10e2bff
commit
0640eacb95
@ -341,7 +341,8 @@ class ConfigManager(QObject):
|
||||
"""
|
||||
try:
|
||||
self.set('conf', section, option, value)
|
||||
except (NoOptionError, NoSectionError, ValidationError) as e:
|
||||
except (NoOptionError, NoSectionError, ValidationError,
|
||||
ValueError) as e:
|
||||
message.error("set: {} - {}".format(e.__class__.__name__, e))
|
||||
|
||||
@cmdutils.register(name='set_temp', instance='config',
|
||||
|
Loading…
Reference in New Issue
Block a user