diff --git a/openlibrary/templates/type/edition/view.html b/openlibrary/templates/type/edition/view.html
index 4c383cfe64c..61c8dd54cec 100644
--- a/openlibrary/templates/type/edition/view.html
+++ b/openlibrary/templates/type/edition/view.html
@@ -90,8 +90,8 @@
authors = cond(work, work and work.get_authors(), edition and edition.get_authors())
if authors:
return ', '.join('%s' % (a.url(), schema_attribute, truncate(a.name, 40)) if a.name else "Unknown author" for a in authors)
- elif edition.author_names:
- return ('' % (schema_attribute)) + ", ".join(edition.author_names) + ""
+ elif (edition or work).author_names:
+ return ('' % (schema_attribute)) + ", ".join((edition or work).author_names) + ""
else:
return None