Skip to content

Commit 6dba1fe

Browse files
fix: exception raised when mass-deleting all items in a content library
ContentLibraryBlockNotFound was being raised and not caught, propagating up to celery task error
1 parent c47b3e0 commit 6dba1fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openedx/core/djangoapps/content/search/documents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ def searchable_doc_containers(object_id: OpaqueKey, container_type: str) -> dict
520520
else:
521521
log.warning(f"Unexpected key type for {object_id}")
522522

523-
except ObjectDoesNotExist:
523+
except (ObjectDoesNotExist, lib_api.ContentLibraryBlockNotFound):
524524
log.warning(f"No library item found for {object_id}")
525525

526526
if not containers:

0 commit comments

Comments
 (0)