• R/O
  • SSH
  • HTTPS

o2on: Commit


Commit MetaInfo

Revision178 (tree)
Zeit2010-02-16 22:04:08
Autornawota

Log Message

Check if xml was parsable.

Ändern Zusammenfassung

Diff

--- trunk/opy2on/lib/o2on_node.py (revision 177)
+++ trunk/opy2on/lib/o2on_node.py (revision 178)
@@ -250,7 +250,8 @@
250250 pass
251251 else:
252252 if data:
253- dom = xml.dom.minidom.parseString(data)
253+ try: dom = xml.dom.minidom.parseString(data)
254+ except: return result
254255 nn = dom.getElementsByTagName("nodes")
255256 if len(nn):
256257 for n in nn[0].getElementsByTagName("node"):
Show on old repository browser