From 805addf18a86347282edbea2b63c42aa3466b6ca Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Thu, 29 Sep 2022 18:55:37 +0400 Subject: [PATCH] Fixed double token parsing --- python_aternos/atclient.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python_aternos/atclient.py b/python_aternos/atclient.py index 0db7264..d2ce327 100644 --- a/python_aternos/atclient.py +++ b/python_aternos/atclient.py @@ -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,