mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Fix error in handling exceptions during configuration read
This commit is contained in:
parent
1af15f79b7
commit
438b97e6d0
4
cfg.py
4
cfg.py
@ -8,8 +8,8 @@ def get_item(parser, section, name):
|
||||
try:
|
||||
return parser.get(section, name)
|
||||
except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
|
||||
print ("The config file {} does not contain the {}.{} option.".format(
|
||||
parser[0], section, name))
|
||||
print ("Configuration does not contain the {}.{} option.".format(
|
||||
section, name))
|
||||
raise
|
||||
|
||||
parser = SafeConfigParser(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user