From f511f5a6469ad0abfa13043a987050660dfed635 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 21 Feb 2022 18:10:05 +0100 Subject: [PATCH] Fix bug in error handling --- src/pretix/base/views/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/views/tasks.py b/src/pretix/base/views/tasks.py index a757fbd7da..03c8d8809e 100644 --- a/src/pretix/base/views/tasks.py +++ b/src/pretix/base/views/tasks.py @@ -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):