Prevent the crash caused by illegal XML

This commit is contained in:
Jiye Qian 2017-08-13 19:41:43 +08:00
parent 6186acd575
commit 6222214ff3

View File

@ -133,7 +133,10 @@ class PascalVocReader:
self.shapes = []
self.filepath = filepath
self.verified = False
self.parseXML()
try:
self.parseXML()
except:
pass
def getShapes(self):
return self.shapes