forked from mirrors/bookwyrm
Fixes setting lower() on NoneType
This commit is contained in:
parent
f8a321c74d
commit
0a4e755516
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue