mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix sqlite session clone causing integrity error
Triggered on migrations, the dc id would be None.
This commit is contained in:
parent
67a782a6d7
commit
6060b3430c
|
@ -198,7 +198,7 @@ class SQLiteSession(MemorySession):
|
||||||
# multiple DCs. Probably done differently.
|
# multiple DCs. Probably done differently.
|
||||||
c.execute('delete from sessions')
|
c.execute('delete from sessions')
|
||||||
c.execute('insert or replace into sessions values (?,?,?,?)', (
|
c.execute('insert or replace into sessions values (?,?,?,?)', (
|
||||||
self._dc_id,
|
self._dc_id or 0,
|
||||||
self._server_address,
|
self._server_address,
|
||||||
self._port,
|
self._port,
|
||||||
self._auth_key.key if self._auth_key else b''
|
self._auth_key.key if self._auth_key else b''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user