Fix UpdateState.check_error popping the wrong side

This commit is contained in:
Lonami Exo 2017-09-30 10:27:16 +02:00
parent 6df38da793
commit ee08232473

View File

@ -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