2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-30 13:57:54 +00:00

Fix unresolved reference

This commit is contained in:
Dan
2018-01-15 20:51:40 +01:00
committed by GitHub
parent fa99cbbaa2
commit fe2a8e6663

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)]