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:
Lonami Exo 2017-10-05 13:34:44 +02:00
parent 1fb3d0d00c
commit dde196d8e4

View File

@ -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):
if self.entities.process(tlobject): try:
self.save() # Save if any new entities got added if self.entities.process(tlobject):
self.save() # Save if any new entities got added
except:
pass