summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.py')
-rw-r--r--src/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config.py b/src/config.py
index 57c3d90a..8237c7b7 100644
--- a/src/config.py
+++ b/src/config.py
@@ -59,7 +59,10 @@ class Config(RawConfigParser):
return self._get(option)
def getint(self, option):
- return int(self._get(option))
+ try:
+ return int(self._get(option))
+ except ValueError:
+ return -1
def getfloat(self, option):
return float(self._get(option))