mirror of https://github.com/MISP/misp-modules
updated
parent
d3d772a225
commit
0c9550fae5
|
@ -37,7 +37,7 @@ def handler(q=False):
|
||||||
if q is False:
|
if q is False:
|
||||||
return False
|
return False
|
||||||
request = json.loads(q)
|
request = json.loads(q)
|
||||||
if request.get('config'):
|
if not request.get('config'):
|
||||||
return {'error' : 'IpGeolocation Configuration is missing'}
|
return {'error' : 'IpGeolocation Configuration is missing'}
|
||||||
if not request['config'].get('apiKey'):
|
if not request['config'].get('apiKey'):
|
||||||
return {'error' : 'IpGeolocation apiKey is missing'}
|
return {'error' : 'IpGeolocation apiKey is missing'}
|
||||||
|
|
Loading…
Reference in New Issue