fix: fix value error

This commit is contained in:
fatelei 2023-08-24 15:47:46 +08:00
parent 50602ede43
commit df95012544

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