Skip to content

Commit

Permalink
AddonManager: Better error catching in HTML parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Oct 9, 2019
1 parent 6d7da24 commit f66023a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Mod/AddonManager/addonmanager_workers.py
Expand Up @@ -84,7 +84,12 @@ def run(self):
# querying official addons
for l in p:
#name = re.findall("data-skip-pjax=\"true\">(.*?)<",l)[0]
name = re.findall("title=\"(.*?) @",l)[0]
res = re.findall("title=\"(.*?) @",l)
if res:
name = res[0]
else:
print("AddonMananger: Debug: couldn't find title in",l)
continue
self.info_label.emit(name)
#url = re.findall("title=\"(.*?) @",l)[0]
url = utils.getRepoUrl(l)
Expand Down

0 comments on commit f66023a

Please sign in to comment.