From fe2a8e66639252998593c03ba9d9b1022dbb912c Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 15 Jan 2018 20:51:40 +0100 Subject: [PATCH] Fix unresolved reference --- pyrogram/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 7b847dfd..dde0c090 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -320,7 +320,7 @@ class Client: 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)]