From ee5d503fc42ba23bb2bc446a680747ff538a7a21 Mon Sep 17 00:00:00 2001 From: Usama015 Date: Tue, 13 Jun 2023 17:47:50 +0500 Subject: [PATCH] resolved Exception --- misp_modules/modules/expansion/whoisfreaks.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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