Merge pull request #310 from Websoft9/issue-285

fix: fix value error
This commit is contained in:
qiaofeng1227 2023-08-24 16:18:53 +08:00 committed by GitHub
commit 70141869ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,13 @@ class Settings(object):
if i.startswith('#'):
continue
i = i.replace('\n', '').replace('\r\n', '')
if not i:
continue
tmp = i.split('=')
if len(tmp) != 2:
myLogger.error_logger(f'invalid format {i}')
continue
key, value = i.split('=')
if self._config.get(key) != value:
self._config[key] = value