resolved Exception

pull/615/head
Usama015 2023-06-13 17:47:50 +05:00
parent 5b5eaddf5e
commit ee5d503fc4
1 changed files with 1 additions and 4 deletions

View File

@ -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