mirror of https://github.com/MISP/misp-modules
correct codecov
parent
755d907580
commit
14695bbeb9
|
@ -19,10 +19,9 @@ moduleinfo = {'version': '1', 'author': 'Sebastien Larinier @sebdraven',
|
||||||
moduleconfig = ['apikey']
|
moduleconfig = ['apikey']
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def handler(q=False):
|
def handler(q=False):
|
||||||
if q is False:
|
if q:
|
||||||
return False
|
|
||||||
request = json.loads(q)
|
request = json.loads(q)
|
||||||
|
|
||||||
if not request.get('config') and not (request['config'].get('apikey')):
|
if not request.get('config') and not (request['config'].get('apikey')):
|
||||||
|
@ -44,6 +43,8 @@ def handler(q=False):
|
||||||
return misperrors
|
return misperrors
|
||||||
|
|
||||||
return handle_expansion(api, ip, misperrors)
|
return handle_expansion(api, ip, misperrors)
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
def handle_expansion(api, ip, misperrors):
|
def handle_expansion(api, ip, misperrors):
|
||||||
|
|
Loading…
Reference in New Issue