added exception to parsing ssj

This commit is contained in:
voje 2019-04-21 16:07:08 +02:00
parent c6b8426fb3
commit 94d5a6cd73

View File

@ -61,7 +61,10 @@ class Parser():
def parse_any_links_ssj(self, sent_el, links_type):
lgrps = sent_el.findall(".//linkGrp")
try:
links = [x for x in lgrps if x.get("type") == links_type][0]
except:
return []
res_links = []
for link in links:
tar = self.parse_ssj_target_arg(link.get("target"))