Catch ValueError when catching :set errors

This commit is contained in:
Florian Bruhin 2014-05-02 12:27:06 +02:00
parent fcb10e2bff
commit 0640eacb95

View File

@ -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',