Fix crash when verified key does not exist
This commit is contained in:
parent
3abd685a8d
commit
6151e9cf6a
@ -145,7 +145,7 @@ class PascalVocReader:
|
||||
verified = xmltree.attrib['verified']
|
||||
if verified == 'yes':
|
||||
self.verified = True
|
||||
except AttributeError:
|
||||
except KeyError:
|
||||
self.verified = False
|
||||
|
||||
for object_iter in xmltree.findall('object'):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user