Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Handle instances where media items do not have creator (#3177)
Dhruv Bhanushali8be44bbf7a01
diff --git a/api/api/controllers/search_controller.py b/api/api/controllers/search_controller.pyindex a9041d01d..577d76dae 100644--- a/api/api/controllers/search_controller.py+++ b/api/api/controllers/search_controller.py@@ -519,7 +519,7 @@ def related_media(uuid: str, index: str, filter_dead: bool) -> list[Hit]:# Match related using title.title = item_hit.titletags = getattr(item_hit, "tags", None)- creator = item_hit.creator+ creator = getattr(item_hit, "creator", None)if not title and not tags:if not creator: