mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-12-01 22:03:46 +03:00
Swallow errors when processing entities
Some bug was causing an infinite lock due to the entity database failing with InputPeerSelf, since adding a full entity to the database wasn't disallowing self, and so wasn't utils get_peer_id. Although last commit fixed that, just in case, swallow errors there.
This commit is contained in:
parent
1fb3d0d00c
commit
dde196d8e4
|
@ -181,5 +181,8 @@ class Session:
|
||||||
self.time_offset = correct - now
|
self.time_offset = correct - now
|
||||||
|
|
||||||
def process_entities(self, tlobject):
|
def process_entities(self, tlobject):
|
||||||
|
try:
|
||||||
if self.entities.process(tlobject):
|
if self.entities.process(tlobject):
|
||||||
self.save() # Save if any new entities got added
|
self.save() # Save if any new entities got added
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user