fixed bug if .arl file has newline
This commit is contained in:
parent
b16dd746a4
commit
231fcc4643
|
@ -25,7 +25,7 @@ def login():
|
||||||
mkdir(configFolder)
|
mkdir(configFolder)
|
||||||
if path.isfile(path.join(configFolder, '.arl')):
|
if path.isfile(path.join(configFolder, '.arl')):
|
||||||
with open(path.join(configFolder, '.arl'), 'r') as f:
|
with open(path.join(configFolder, '.arl'), 'r') as f:
|
||||||
arl = f.read()
|
arl = f.readline()
|
||||||
if not dz.login_via_arl(arl):
|
if not dz.login_via_arl(arl):
|
||||||
arl = requestValidArl()
|
arl = requestValidArl()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue