fix bug in read settings.txt

This commit is contained in:
2021-05-09 14:13:05 +08:00
parent 6c47f8bfcd
commit 01ed67f8f4

View File

@@ -31,7 +31,7 @@ class settings:
with open(fn, 'r', encoding='utf8') as f:
t = f.read()
for i in t.splitlines(False):
l = i.split('=', 2)
l = i.split('=', 1)
if len(l) == 2:
d[l[0]] = l[1]
self._token = d['token'] if 'token' in d else None