From 47f31811f921b9fb30c37c3e438268609e5e28ac Mon Sep 17 00:00:00 2001
From: Edward Betts <edward@4angle.com>
Date: Mon, 30 Sep 2019 12:57:16 +0100
Subject: [PATCH] Only don't show empty catalog description

---
 app.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/app.py b/app.py
index 0c0b959..02427e5 100755
--- a/app.py
+++ b/app.py
@@ -502,10 +502,11 @@ def item_page(item_id):
         if not catalog and catalog_url:
             html = get_catalog_url(catalog_url)
             description = get_description_from_page(html)
-            catalog = {
-                'institution': institution,
-                'description': description,
-            }
+            if description:
+                catalog = {
+                    'institution': institution,
+                    'description': description,
+                }
 
         if not catalog and catalog_ids:
             for property_id in sorted(catalog_ids):