summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.py')
-rw-r--r--src/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.py b/src/config.py
index f85de1e2..685c8eb6 100644
--- a/src/config.py
+++ b/src/config.py
@@ -45,13 +45,13 @@ class Config(RawConfigParser):
"""
try:
if type(default) == int:
- res = self.getint(option)
+ res = self.getint(option, section)
elif type(default) == float:
- res = self.getfloat(option)
+ res = self.getfloat(option, section)
elif type(default) == bool:
- res = self.getboolean(option)
+ res = self.getboolean(option, section)
else:
- res = self.getstr(option)
+ res = self.getstr(option, section)
except NoOptionError:
return default
return res