1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 13:06:59 -05:00

Merge pull request #25 from deathbybandaid/dev

Verify Secions are lower()
This commit is contained in:
Deathbybandaid 2020-10-09 20:25:09 -04:00 committed by GitHub
commit 24aed9b2c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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