diff --git a/misp_modules/modules/expansion/whoisfreaks.py b/misp_modules/modules/expansion/whoisfreaks.py index 2e8e1e9..8117367 100644 --- a/misp_modules/modules/expansion/whoisfreaks.py +++ b/misp_modules/modules/expansion/whoisfreaks.py @@ -1,10 +1,7 @@ import json -import logging import requests -from . import check_input_attribute, standard_error_message - misperrors = {'error': 'Error'} mispattributes = { 'input': ['domain'], @@ -26,7 +23,7 @@ def handler(q=False): request = json.loads(q) - if 'config' not in request or (not ('apiKey' in request['config'])): + if 'config' not in request or ('apiKey' not in request['config']): misperrors['error'] = 'WhoisFreaks authentication is missing' + request return misperrors