2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Merge branch 'asyncio-dev' of https://github.com/pyrogram/pyrogram into asyncio-dev

This commit is contained in:
Dan 2019-09-09 15:57:10 +02:00
commit 3dce23524d

View File

@ -384,8 +384,8 @@ class Session:
await asyncio.wait_for(self.results[msg_id].event.wait(), timeout)
except asyncio.TimeoutError:
pass
result = self.results.pop(msg_id).value
finally:
result = self.results.pop(msg_id).value
if result is None:
raise TimeoutError