mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-12-01 22:03:46 +03:00
Fix session failing to load if no auth_key present
This commit is contained in:
parent
56103845de
commit
6df38da793
|
@ -118,7 +118,7 @@ class Session:
|
||||||
# FIXME We need to import the AuthKey here or otherwise
|
# FIXME We need to import the AuthKey here or otherwise
|
||||||
# we get cyclic dependencies.
|
# we get cyclic dependencies.
|
||||||
from ..crypto import AuthKey
|
from ..crypto import AuthKey
|
||||||
if data['auth_key_data'] is not None:
|
if data.get('auth_key_data', None) is not None:
|
||||||
key = b64decode(data['auth_key_data'])
|
key = b64decode(data['auth_key_data'])
|
||||||
result.auth_key = AuthKey(data=key)
|
result.auth_key = AuthKey(data=key)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user