Not all artworks have an institution

This commit is contained in:
Edward Betts 2023-11-09 07:40:12 +01:00
parent d814ecf3a4
commit 441839e832

1
app.py
View file

@ -528,7 +528,6 @@ def item_page(item_id: int) -> str | Response:
catalog = wd_catalog.get_catalog_from_artwork(entity) catalog = wd_catalog.get_catalog_from_artwork(entity)
if not catalog.get("institution"): if not catalog.get("institution"):
institution = get_institution(entity, other) institution = get_institution(entity, other)
assert institution
catalog["institution"] = institution catalog["institution"] = institution
return render_template( return render_template(