summaryrefslogtreecommitdiff
path: root/caribou/settings/setting_types.py
diff options
context:
space:
mode:
Diffstat (limited to 'caribou/settings/setting_types.py')
-rw-r--r--caribou/settings/setting_types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/caribou/settings/setting_types.py b/caribou/settings/setting_types.py
index f6a0503..42e40cc 100644
--- a/caribou/settings/setting_types.py
+++ b/caribou/settings/setting_types.py
@@ -93,7 +93,7 @@ class ValueSetting(Setting):
def value(self, val):
_val = self.convert_value(val)
if self.allowed and _val not in [a for a, b in self.allowed]:
- raise ValueError, "'%s' not a valid value" % _val
+ raise ValueError("'%s' not a valid value" % _val)
self._value = _val
if not self.hush:
self.emit('value-changed', _val)