[EUPI] Return error message is unknown

pull/23/head
Raphaël Vinot 2016-05-13 11:56:12 +02:00
parent 35a5a72f94
commit 16231782e8
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ def handler(q=False):
to_return += ' {} {} {} '.format(r['url'], r['domain'], r['ip_address'])
if to_return:
return {'results': [{'types': mispattributes['output'], 'values': to_return}]}
else:
misperrors['error'] = 'Unknown in the Phishing Initiative service'
return misperrors
def introspection():