mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
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(),
|
"editions": editions.filter(**filters).all(),
|
||||||
"work": work,
|
"work": work,
|
||||||
"languages": languages,
|
"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)
|
return TemplateResponse(request, "book/editions.html", data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue