Skip to content

Commit

Permalink
Fix unresolved reference
Browse files Browse the repository at this point in the history
  • Loading branch information
delivrance committed Jan 15, 2018
1 parent fa99cbb commit fe2a8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def load_session(self, session_name):
self.user_id = s["user_id"]

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 = [auth_key[i: i + 43] for i in range(0, len(auth_key), 43)]

Expand Down

0 comments on commit fe2a8e6

Please sign in to comment.