diff --git a/mapstore2_adapter/plugins/geonode.py b/mapstore2_adapter/plugins/geonode.py index 04367a2a6f..e6cac6a2e3 100644 --- a/mapstore2_adapter/plugins/geonode.py +++ b/mapstore2_adapter/plugins/geonode.py @@ -125,9 +125,9 @@ def convert(self, viewer, request): info = {} info['canDelete'] = False info['canEdit'] = False - info['description'] = viewer_obj['about']['abstract'] + info['description'] = viewer_obj['about']['abstract'] if viewer_obj.get('about') else '' info['id'] = map_id - info['name'] = viewer_obj['about']['title'] + info['name'] = viewer_obj['about']['title']if viewer_obj.get('about') else '' if map_id: from mapstore2_adapter import fixup_map @@ -287,7 +287,8 @@ def convert(self, viewer, request): logger.debug(tb) data['version'] = 2 - data['map']['info'] = info + if data.get('map'): + data['map']['info'] = info # Default Catalogue Services Definition try: