Fixed double token parsing

This commit is contained in:
DarkCat09 2022-09-29 18:55:37 +04:00
parent 7924678c96
commit 805addf18a

View file

@ -67,8 +67,6 @@ class Client:
"""
atconn = AternosConnect()
atconn.parse_token()
atconn.generate_sec()
secure = cls.secure_name(username)
filename = f'{sessions_dir}/.at_{secure}'
@ -78,6 +76,9 @@ class Client:
except (OSError, CredentialsError):
pass
atconn.parse_token()
atconn.generate_sec()
credentials = {
'user': username,
'password': md5,