Browse Source

chg: Catching missing config issue

pull/380/head
chrisr3d 2 years ago
parent
commit
dea42d3929
No known key found for this signature in database GPG Key ID: 6BBED1B63A6D639F
  1. 2
      misp_modules/modules/expansion/ransomcoindb.py

2
misp_modules/modules/expansion/ransomcoindb.py

@ -26,6 +26,8 @@ def handler(q=False):
return False
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"]
r = {"results": []}

Loading…
Cancel
Save