fixed bug if .arl file has newline

This commit is contained in:
uh_wot 2020-05-07 16:48:57 +02:00
parent b16dd746a4
commit 231fcc4643
1 changed files with 1 additions and 1 deletions

View File

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