mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 09:55:21 +00:00
Fix response None check in handlers
This commit is contained in:
parent
19f67a2e99
commit
b45df4ea2e
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ class Handler:
|
|||
context.set_value('handler', handler)
|
||||
await self.dispatcher.middleware.trigger(f"process_{self.middleware_key}", args)
|
||||
response = await handler(*args)
|
||||
if results is not None:
|
||||
if response is not None:
|
||||
results.append(response)
|
||||
if self.once:
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue