mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-30 05:13:45 +03:00
Fix downloading from another DC using wrong auth the first time
This commit is contained in:
parent
005a8f0a7f
commit
a353679796
|
@ -227,7 +227,7 @@ class Session:
|
|||
c = self._cursor()
|
||||
c.execute('select auth_key from sessions')
|
||||
tuple_ = c.fetchone()
|
||||
if tuple_:
|
||||
if tuple_ and tuple_[0]:
|
||||
self._auth_key = AuthKey(data=tuple_[0])
|
||||
else:
|
||||
self._auth_key = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user