Only don't show empty catalog description

This commit is contained in:
Edward Betts 2019-09-30 12:57:16 +01:00
parent 0c0858c4ee
commit 47f31811f9

1
app.py
View file

@ -502,6 +502,7 @@ def item_page(item_id):
if not catalog and catalog_url:
html = get_catalog_url(catalog_url)
description = get_description_from_page(html)
if description:
catalog = {
'institution': institution,
'description': description,