Skip to content

Commit 7144ae1

Browse files
author
Coudray
committed
accept xml format modif
1 parent 0ecd415 commit 7144ae1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

DeepPATH_code/00_preprocessing/0b_tileLoop_deepzoom4.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -407,13 +407,15 @@ def xml_read(self, xmldir, Attribute_Name):
407407
if (Attribute_Name==[]) | (Attribute_Name==''):
408408
isLabelOK = True
409409
else:
410-
labeltag = labelID.getElementsByTagName('Attribute')[0]
411-
if (Attribute_Name==labeltag.attributes['Value'].value):
412-
#if (Attribute_Name==labeltag.attributes['Name'].value):
413-
isLabelOK = True
414-
else:
415-
isLabelOK = False
416-
410+
try:
411+
labeltag = labelID.getElementsByTagName('Attribute')[0]
412+
if (Attribute_Name==labeltag.attributes['Value'].value):
413+
#if (Attribute_Name==labeltag.attributes['Name'].value):
414+
isLabelOK = True
415+
else:
416+
isLabelOK = False
417+
except:
418+
isLabelOK = False
417419
if Attribute_Name == "non_selected_regions":
418420
isLabelOK = True
419421

0 commit comments

Comments
 (0)