mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
And... Something wrong. Revert default filters generator.
This commit is contained in:
parent
e50b9a94dd
commit
a59c5af5d0
1 changed files with 1 additions and 4 deletions
|
|
@ -127,10 +127,7 @@ def generate_default_filters(dispatcher, *args, **kwargs):
|
|||
filters_set = []
|
||||
|
||||
for name, filter_ in kwargs.items():
|
||||
if filter_ is None and name == DefaultFilters.STATE:
|
||||
filter_ = []
|
||||
|
||||
if filter_ is None:
|
||||
if filter_ is None and name != DefaultFilters.STATE:
|
||||
continue
|
||||
if name == DefaultFilters.COMMANDS:
|
||||
if isinstance(filter_, str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue