mirror of https://github.com/MISP/misp-modules
resolved Exception
parent
5b5eaddf5e
commit
ee5d503fc4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue