mirror of https://github.com/MISP/misp-modules
resolved Exception
parent
5b5eaddf5e
commit
ee5d503fc4
|
@ -1,10 +1,7 @@
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from . import check_input_attribute, standard_error_message
|
|
||||||
|
|
||||||
misperrors = {'error': 'Error'}
|
misperrors = {'error': 'Error'}
|
||||||
mispattributes = {
|
mispattributes = {
|
||||||
'input': ['domain'],
|
'input': ['domain'],
|
||||||
|
@ -26,7 +23,7 @@ def handler(q=False):
|
||||||
|
|
||||||
request = json.loads(q)
|
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
|
misperrors['error'] = 'WhoisFreaks authentication is missing' + request
|
||||||
return misperrors
|
return misperrors
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue