#161 #211 fix the summary method and return {} if no taxonomy is available

This commit is contained in:
Nabil Adouani 2018-03-23 16:08:06 +01:00
parent f10644e137
commit 0eeceba5f7

View File

@ -24,6 +24,8 @@ class AbuseFinderAnalyzer(Analyzer):
for abuse in raw['abuse_finder']['abuse']:
taxonomies.append(self.build_taxonomy("info", "Abuse_Finder", "Address", abuse))
return {"taxonomies": taxonomies}
return {}
def abuse(self):
if self.data_type == "ip":