Browse Source

[EUPI] Do not return empty results

pull/22/head
Raphaël Vinot 6 years ago
parent
commit
35a5a72f94
  1. 5
      modules/expansion/eupi.py

5
modules/expansion/eupi.py

@ -39,9 +39,8 @@ def handler(q=False): @@ -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():

Loading…
Cancel
Save