diff --git a/bookwyrm/views/import_data.py b/bookwyrm/views/import_data.py index b2b88a2eb..70b9f89df 100644 --- a/bookwyrm/views/import_data.py +++ b/bookwyrm/views/import_data.py @@ -84,7 +84,9 @@ class ImportStatus(View): try: task = app.AsyncResult(job.task_id) - except ValueError: + # triggers attribute error if the task won't load + task.status # pylint: disable=pointless-statement + except (ValueError, AttributeError): task = None items = job.items.order_by("index").all()