mirror of https://github.com/MISP/misp-modules
chg: Catching missing config issue
parent
6111f02f59
commit
dea42d3929
|
@ -26,6 +26,8 @@ def handler(q=False):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
q = json.loads(q)
|
q = json.loads(q)
|
||||||
|
if "config" not in q or "api-key" not in q["config"]:
|
||||||
|
return {"error": "Ransomcoindb API key is missing"}
|
||||||
api_key = q["config"]["api-key"]
|
api_key = q["config"]["api-key"]
|
||||||
r = {"results": []}
|
r = {"results": []}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue