mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +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)
|
context.set_value('handler', handler)
|
||||||
await self.dispatcher.middleware.trigger(f"process_{self.middleware_key}", args)
|
await self.dispatcher.middleware.trigger(f"process_{self.middleware_key}", args)
|
||||||
response = await handler(*args)
|
response = await handler(*args)
|
||||||
if results is not None:
|
if response is not None:
|
||||||
results.append(response)
|
results.append(response)
|
||||||
if self.once:
|
if self.once:
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue