Skip to content

Commit

Permalink
Merge branch 'master' into distributed_services
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsBSD committed Aug 8, 2014
2 parents 7beb1a4 + 2af24ac commit 8f9df21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions threatrecon_service/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ def run(self, obj, config):
self._error("Threatrecon: query error (%s)" % loaded['Msg'])
return

if loaded['Results'] is None:
return

for results in loaded['Results']:
stats = {
'indicator': results['Indicator'],
Expand All @@ -111,5 +114,3 @@ def run(self, obj, config):
'tags': results['Tags']
}
self._add_result('Enrichment Data', results['Indicator'], stats)


0 comments on commit 8f9df21

Please sign in to comment.