mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 19:33:45 +03:00
Fix UpdateState.check_error popping the wrong side
This commit is contained in:
parent
6df38da793
commit
ee08232473
|
@ -63,7 +63,7 @@ class UpdateState:
|
|||
def check_error(self):
|
||||
with self._updates_lock:
|
||||
if self._updates and isinstance(self._updates[0], Exception):
|
||||
raise self._updates.pop()
|
||||
raise self._updates.popleft()
|
||||
|
||||
def process(self, update):
|
||||
"""Processes an update object. This method is normally called by
|
||||
|
|
Loading…
Reference in New Issue
Block a user