src/hdalab/views/ajax.py
changeset 702 2a6e667b1610
parent 620 f45d7494332e
--- a/src/hdalab/views/ajax.py	Fri Mar 16 18:54:11 2018 +0100
+++ b/src/hdalab/views/ajax.py	Wed Jul 17 22:46:52 2024 +0200
@@ -124,8 +124,8 @@
                 'url': datasheet.url,
                 'description': datasheet.description,
                 'hda_id': datasheet.hda_id,
-                'organization': datasheet.organisation.name,
-                'organization_url': datasheet.organisation.website,
+                'organization': datasheet.organisation.name if datasheet.organisation else "",
+                'organization_url': datasheet.organisation.website if datasheet.organisation else "",
                 'score': max(dsscore, rootscore)
             })
     if resobj: