Fix downloading from another DC using wrong auth the first time

This commit is contained in:
Lonami Exo 2018-02-23 13:13:39 +01:00
parent 005a8f0a7f
commit a353679796

View File

@ -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