From 222df2ba2afec45de98a856f223617ae75cf8ab5 Mon Sep 17 00:00:00 2001 From: helmutm Date: Fri, 10 Sep 2010 10:46:26 +0000 Subject: [PATCH] ignore invalid items coming from BSCW git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3990 fd906abe-77d9-0310-91a1-e0d9ade77398 --- integrator/bscw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrator/bscw.py b/integrator/bscw.py index c77f582..33a81ee 100644 --- a/integrator/bscw.py +++ b/integrator/bscw.py @@ -190,7 +190,7 @@ class ReadContainer(BSCWProxyBase, ReadContainer): def data(self): data = self.attributes if len(data) > 1: - return dict((item['id'], item) for item in data[1]) + return dict((item['id'], item) for item in data[1] if 'id' in item) else: return {}