added exception to parsing ssj
This commit is contained in:
parent
c6b8426fb3
commit
94d5a6cd73
|
@ -61,7 +61,10 @@ class Parser():
|
||||||
|
|
||||||
def parse_any_links_ssj(self, sent_el, links_type):
|
def parse_any_links_ssj(self, sent_el, links_type):
|
||||||
lgrps = sent_el.findall(".//linkGrp")
|
lgrps = sent_el.findall(".//linkGrp")
|
||||||
links = [x for x in lgrps if x.get("type") == links_type][0]
|
try:
|
||||||
|
links = [x for x in lgrps if x.get("type") == links_type][0]
|
||||||
|
except:
|
||||||
|
return []
|
||||||
res_links = []
|
res_links = []
|
||||||
for link in links:
|
for link in links:
|
||||||
tar = self.parse_ssj_target_arg(link.get("target"))
|
tar = self.parse_ssj_target_arg(link.get("target"))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user