Skip to content

Commit

Permalink
Merge pull request #485 from garanews/patch-4
Browse files Browse the repository at this point in the history
fix when hash not found
  • Loading branch information
jeromeleonard authored Nov 17, 2019
2 parents 435de81 + f1bc2f4 commit c4a1b31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analyzers/URLhaus/URLhaus_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def summary(self, raw):
taxonomies = []
namespace = "URLhaus"

if raw['query_status'] == 'no_results':
if raw['query_status'] == 'no_results' \
or raw['query_status'] == 'ok' and raw['md5_hash'] == None and raw['sha256_hash'] == None:
taxonomies.append(self.build_taxonomy(
'info',
namespace,
Expand Down

0 comments on commit c4a1b31

Please sign in to comment.