Skip to content

Commit

Permalink
Merge pull request #365 from garanews/patch-2
Browse files Browse the repository at this point in the history
fix in case GSB value is missing
  • Loading branch information
3c7 authored Nov 9, 2018
2 parents 1dd8448 + 09d3a35 commit b0041a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyzers/URLhaus/URLhaus.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def parse(self, doc):
"link": cols[1].find("a").attrs.get("href"),
"status": cols[2].text,
"tags": cols[3].text.split(),
"gsb": cols[4].text,
"reporter": cols[5].text
"gsb": cols[4].text if len(cols) > 5 else None,
"reporter": cols[5].text if len(cols) > 5 else cols[4].text
})
return results

0 comments on commit b0041a6

Please sign in to comment.