summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-05-11 16:45:14 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-05-11 16:45:14 +0000
commitd80a16ac9cc73ce95b62a21892e2055a548e0e44 (patch)
tree9d224b186430d3e3ad933a9f55329335bfa62166 /src/config.py
parenta14611dbde118b1ffa6f66eb7237ddc0c3c61508 (diff)
downloadpoezio-d80a16ac9cc73ce95b62a21892e2055a548e0e44.tar.gz
poezio-d80a16ac9cc73ce95b62a21892e2055a548e0e44.tar.bz2
poezio-d80a16ac9cc73ce95b62a21892e2055a548e0e44.tar.xz
poezio-d80a16ac9cc73ce95b62a21892e2055a548e0e44.zip
Display the status change and/or disconnect for recent-speakers only. fixed #1288
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))