Skip to content

Commit

Permalink
Got a super weired error:
Browse files Browse the repository at this point in the history
<bound method mybrains.getObject of <Products.ZCatalog.Catalog.mybrains object at 0x7f4fd3ec9c80>>
(Pdb) it.getObject()
*** KeyError: 'zu-gast-bei-architekt-bernhard-schmidt-architektin-christiane-laimer'
  • Loading branch information
thet committed May 17, 2019
1 parent d60f1fc commit 07d4c4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/collective/collectionfilter/baseviews.py
Expand Up @@ -209,7 +209,12 @@ def data_geojson(self):
}
}

props = IGeoJSONProperties(it.getObject(), None)
props = None
try:
props = IGeoJSONProperties(it.getObject(), None)
except:
# Hotfix bypass super weired ZODB Error
pass
if getattr(props, 'popup', None):
feature['properties']['popup'] = props.popup
if getattr(props, 'color', None):
Expand Down

0 comments on commit 07d4c4f

Please sign in to comment.