Fix bug in error handling

This commit is contained in:
Raphael Michel
2022-02-21 18:10:05 +01:00
parent 6ba690932f
commit f511f5a646

View File

@@ -205,7 +205,7 @@ class AsyncFormView(AsyncMixin, FormView):
Also, all form keyword arguments except ``instance`` need to be serializable.
"""
known_errortypes = ['ValidationError']
expected_exceptions = [ValidationError]
expected_exceptions = (ValidationError,)
task_base = ProfiledEventTask
def __init_subclass__(cls):