Skip to content

Commit

Permalink
#425 #353 fix number of values = 0 in summary()
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Mar 23, 2019
1 parent 0e26be6 commit a762315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/AbuseIPDB/abuseipdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run(self):
def summary(self, raw):
taxonomies = []

if raw and 'values' in raw:
if raw and 'values' in raw and len(raw['values']) > 0 :
taxonomies.append(self.build_taxonomy('malicious', 'AbuseIPDB', 'Records', len(raw['values'])))
else:
taxonomies.append(self.build_taxonomy('safe', 'AbuseIPDB', 'Records', 0))
Expand Down

0 comments on commit a762315

Please sign in to comment.