Improve filters factory resolve error (#718)

This commit is contained in:
Alex Root Junior 2021-10-06 00:10:46 +03:00 committed by GitHub
parent 275bd509a1
commit 45a1fb2749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 74 additions and 33 deletions

10
CHANGES/717.feature Normal file
View 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)