check for creator None
@@ -102,6 +102,7 @@ def resource_first_author(content):
if creator.order == 1:
first_creator = creator
break
+ if first_creator:
if first_creator.name and first_creator.relative_uri:
return format_html('<a href="{desc}">{name}</a>',
desc=first_creator.relative_uri,
