Fixes setting lower() on NoneType

This commit is contained in:
Mouse Reeve 2021-03-29 11:27:51 -07:00
parent f8a321c74d
commit 0a4e755516

View file

@ -266,7 +266,7 @@ class Editions(View):
"editions": editions.filter(**filters).all(),
"work": work,
"languages": languages,
"formats": set(e.physical_format.lower() for e in editions),
"formats": set(e.physical_format.lower() for e in editions if e),
}
return TemplateResponse(request, "book/editions.html", data)