sobjects/cwxmlparser.py
changeset 10089 6346f53c85f1
parent 9750 566f8fce5168
child 10515 70ed2067fdb5
--- a/sobjects/cwxmlparser.py	Tue Dec 02 11:37:01 2014 +0100
+++ b/sobjects/cwxmlparser.py	Wed Nov 19 11:57:55 2014 +0100
@@ -195,7 +195,7 @@
                 parser=self)
             yield builder.build_item()
 
-    def process_item(self, item, rels):
+    def process_item(self, item, rels, raise_on_error=False):
         """
         item and rels are what's returned by the item builder `build_item` method:
 
@@ -204,7 +204,8 @@
            {role: {relation: [(related item, related rels)...]}
         """
         entity = self.extid2entity(str(item['cwuri']), item['cwtype'],
-                                   cwsource=item['cwsource'], item=item)
+                                   cwsource=item['cwsource'], item=item,
+                                   raise_on_error=raise_on_error)
         if entity is None:
             return None
         if entity.eid in self._processed_entities: