summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-12-17 14:39:44 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-12-17 14:39:44 +0000
commite6afe9d691a70b678c4b1d788356a0eba1da5a02 (patch)
tree03d84b915ca61843beb10e0befd8266b47c10892 /src/config.py
parentc77842e1becfa458dac24d4137c47bf17748db27 (diff)
downloadpoezio-e6afe9d691a70b678c4b1d788356a0eba1da5a02.tar.gz
poezio-e6afe9d691a70b678c4b1d788356a0eba1da5a02.tar.bz2
poezio-e6afe9d691a70b678c4b1d788356a0eba1da5a02.tar.xz
poezio-e6afe9d691a70b678c4b1d788356a0eba1da5a02.zip
fix typo and catch NoSectionError in config
Diffstat (limited to 'src/config.py')
-rw-r--r--src/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.py b/src/config.py
index 685c8eb6..33bfc1db 100644
--- a/src/config.py
+++ b/src/config.py
@@ -22,7 +22,7 @@ from/to the config file
DEFSECTION = "Poezio"
-from configparser import RawConfigParser, NoOptionError
+from configparser import RawConfigParser, NoOptionError, NoSectionError
from os import environ, makedirs, path
from shutil import copy2
from optparse import OptionParser
@@ -52,7 +52,7 @@ class Config(RawConfigParser):
res = self.getboolean(option, section)
else:
res = self.getstr(option, section)
- except NoOptionError:
+ except NoOptionError, NoSectionError:
return default
return res