From 16231782e8adfa25f4526319b31f58d59501a28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 13 May 2016 11:56:12 +0200 Subject: [PATCH] [EUPI] Return error message is unknown --- modules/expansion/eupi.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/expansion/eupi.py b/modules/expansion/eupi.py index 9ddec38..6057b1a 100755 --- a/modules/expansion/eupi.py +++ b/modules/expansion/eupi.py @@ -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():