Fix unresolved reference

This commit is contained in:
Dan 2018-01-15 20:51:40 +01:00 committed by GitHub
parent fa99cbbaa2
commit fe2a8e6663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,7 +320,7 @@ class Client:
self.user_id = s["user_id"] self.user_id = s["user_id"]
def save_session(self): def save_session(self):
if session_name is not None: if self.session_name is not None:
auth_key = base64.b64encode(self.auth_key).decode() auth_key = base64.b64encode(self.auth_key).decode()
auth_key = [auth_key[i: i + 43] for i in range(0, len(auth_key), 43)] auth_key = [auth_key[i: i + 43] for i in range(0, len(auth_key), 43)]