mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fixed gather awaiting
This commit is contained in:
parent
234c051af7
commit
938688741d
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ class Dispatcher(DataMixin, ContextInstanceMixin):
|
|||
need_to_call.append(response.execute_response(self.bot))
|
||||
if need_to_call:
|
||||
try:
|
||||
asyncio.gather(*need_to_call)
|
||||
await asyncio.gather(*need_to_call)
|
||||
except TelegramAPIError:
|
||||
log.exception('Cause exception while processing updates.')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue