summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/config_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/portato/config_parser.py b/portato/config_parser.py
index f4c6218..ee838b2 100644
--- a/portato/config_parser.py
+++ b/portato/config_parser.py
@@ -291,12 +291,12 @@ class ConfigParser:
"""
try:
- section = self.vars[section]
+ sectiondict = self.vars[section]
except KeyError:
raise SectionNotFoundException("Section '%s' not found in file '%s'." % (section, self.file))
try:
- return section[key]
+ return sectiondict[key]
except KeyError:
raise KeyNotFoundException("Key '%s' not found in section '%s' in file '%s'." % (key, section, self.file))