[z3-checkins] r13879 - z3/zemantic/trunk/src/zemantic

michelp at codespeak.net michelp at codespeak.net
Sat Jun 25 18:23:19 CEST 2005


Author: michelp
Date: Sat Jun 25 18:23:19 2005
New Revision: 13879

Modified:
   z3/zemantic/trunk/src/zemantic/graph.py
Log:
fixed bug raised if object cannot be adapted

Modified: z3/zemantic/trunk/src/zemantic/graph.py
==============================================================================
--- z3/zemantic/trunk/src/zemantic/graph.py	(original)
+++ z3/zemantic/trunk/src/zemantic/graph.py	Sat Jun 25 18:23:19 2005
@@ -44,7 +44,9 @@
     def graph(self, ob):
         dc = DCtoRDFXML(ob)
         if dc is not None:
-            self.getGraph().parse(StringInputSource(dc.xml()))
+            xml = dc.xml()
+            if xml is not None:
+                self.getGraph().parse(StringInputSource(xml))
 
     def regraph(self, ob):
         self.ungraph(ob)


More information about the z3-checkins mailing list