forked from CGM_Public/pretix_original
Export: Gracefully handle ExportEmptyError
This commit is contained in:
@@ -2503,7 +2503,7 @@ class ExportMixin:
|
||||
|
||||
class ExportDoView(EventPermissionRequiredMixin, ExportMixin, AsyncAction, TemplateView):
|
||||
permission = 'can_view_orders'
|
||||
known_errortypes = ['ExportError']
|
||||
known_errortypes = ['ExportError', 'ExportEmptyError']
|
||||
task = export
|
||||
template_name = 'pretixcontrol/orders/export_form.html'
|
||||
|
||||
|
||||
@@ -1726,7 +1726,7 @@ class ExportMixin:
|
||||
|
||||
|
||||
class ExportDoView(OrganizerPermissionRequiredMixin, ExportMixin, AsyncAction, TemplateView):
|
||||
known_errortypes = ['ExportError']
|
||||
known_errortypes = ['ExportError', 'ExportEmptyError']
|
||||
task = multiexport
|
||||
template_name = 'pretixcontrol/organizers/export_form.html'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user