Prevent the crash caused by illegal XML
This commit is contained in:
parent
6186acd575
commit
6222214ff3
@ -133,7 +133,10 @@ class PascalVocReader:
|
|||||||
self.shapes = []
|
self.shapes = []
|
||||||
self.filepath = filepath
|
self.filepath = filepath
|
||||||
self.verified = False
|
self.verified = False
|
||||||
self.parseXML()
|
try:
|
||||||
|
self.parseXML()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
def getShapes(self):
|
def getShapes(self):
|
||||||
return self.shapes
|
return self.shapes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user