mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 15:06:59 -05:00
Merge pull request #25 from deathbybandaid/dev
Verify Secions are lower()
This commit is contained in:
commit
24aed9b2c9
@ -51,8 +51,8 @@ class Config():
|
||||
config_handler = configparser.ConfigParser()
|
||||
config_handler.read(conffilepath)
|
||||
for each_section in config_handler.sections():
|
||||
if each_section not in list(self.dict.keys()):
|
||||
self.dict[each_section] = {}
|
||||
if each_section.lower() not in list(self.dict.keys()):
|
||||
self.dict[each_section.lower()] = {}
|
||||
for (each_key, each_val) in config_handler.items(each_section):
|
||||
if not each_val:
|
||||
each_val = None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user