Merge pull request #22 from Rafiot/master

[EUPI] Do not return empty results
pull/24/head
Raphaël Vinot 2016-05-13 11:45:46 +02:00
commit 927e35b667
1 changed files with 2 additions and 3 deletions

View File

@ -39,9 +39,8 @@ def handler(q=False):
if r['tag_label'] != 'phishing':
continue
to_return += ' {} {} {} '.format(r['url'], r['domain'], r['ip_address'])
r = {'results': [{'types': mispattributes['output'], 'values': to_return}]}
return r
if to_return:
return {'results': [{'types': mispattributes['output'], 'values': to_return}]}
def introspection():