Badges: Use ExportError instead of OrderError

This commit is contained in:
Raphael Michel
2022-11-08 10:24:56 +01:00
parent 3ae42b0c57
commit 8ca38bdbaf
3 changed files with 4 additions and 4 deletions

View File

@@ -32,11 +32,12 @@ from pretix.base.services.tasks import EventTask
from pretix.celery_app import app
from .exporters import OPTIONS, render_pdf
from ...base.services.export import ExportError
logger = logging.getLogger(__name__)
@app.task(base=EventTask, throws=(OrderError,))
@app.task(base=EventTask, throws=(OrderError, ExportError,))
def badges_create_pdf(event: Event, fileid: int, positions: List[int]) -> int:
file = CachedFile.objects.get(id=fileid)