From f1bc2f4c649dcf30d78ea6266610a3452590e798 Mon Sep 17 00:00:00 2001 From: garanews Date: Wed, 29 May 2019 12:25:52 +0200 Subject: [PATCH] fix when hash not found fix when hash not found --- analyzers/URLhaus/URLhaus_analyzer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/analyzers/URLhaus/URLhaus_analyzer.py b/analyzers/URLhaus/URLhaus_analyzer.py index e39e380c8..ce8d1ad04 100755 --- a/analyzers/URLhaus/URLhaus_analyzer.py +++ b/analyzers/URLhaus/URLhaus_analyzer.py @@ -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,