mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Improve filters factory resolve error (#718)
This commit is contained in:
parent
275bd509a1
commit
45a1fb2749
4 changed files with 74 additions and 33 deletions
10
CHANGES/717.feature
Normal file
10
CHANGES/717.feature
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Improved description of filters resolving error.
|
||||
For example when you try to pass wrong type of argument to the filter but don't know why filter is not resolved now you can get error like this:
|
||||
|
||||
.. code-block:: python3
|
||||
|
||||
aiogram.exceptions.FiltersResolveError: Unknown keyword filters: {'content_types'}
|
||||
Possible cases:
|
||||
- 1 validation error for ContentTypesFilter
|
||||
content_types
|
||||
Invalid content types {'42'} is not allowed here (type=value_error)
|
||||
Loading…
Add table
Add a link
Reference in a new issue