mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 19:00:21 +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.
|
||||
c.execute('delete from sessions')
|
||||
c.execute('insert or replace into sessions values (?,?,?,?)', (
|
||||
self._dc_id,
|
||||
self._dc_id or 0,
|
||||
self._server_address,
|
||||
self._port,
|
||||
self._auth_key.key if self._auth_key else b''
|
||||
|
|
Loading…
Reference in New Issue
Block a user