mirror of
https://github.com/valitydev/Cortex-Analyzers.git
synced 2024-11-06 17:15:21 +00:00
Update URLhaus_analyzer.py
This commit is contained in:
parent
e3918f5231
commit
f17f067fb9
@ -35,7 +35,8 @@ class URLhausAnalyzer(Analyzer):
|
||||
namespace = "URLhaus"
|
||||
|
||||
if raw['query_status'] == 'no_results' \
|
||||
or raw['query_status'] == 'ok' and raw['md5_hash'] == None and raw['sha256_hash'] == None:
|
||||
or (raw['query_status'] == 'ok' and not raw.get('md5_hash', None) \
|
||||
and not raw.get('sha256_hash', None)):
|
||||
taxonomies.append(self.build_taxonomy(
|
||||
'info',
|
||||
namespace,
|
||||
|
Loading…
Reference in New Issue
Block a user