Skip to content

Commit

Permalink
[Fixes #560] View Geostory/Dashboard loggs KeyError (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
marthamareal authored Dec 21, 2021
1 parent bd50f74 commit 4321c06
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mapstore2_adapter/plugins/geonode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4321c06

Please sign in to comment.