correct codecov

pull/193/head
Sebdraven 2018-06-11 13:34:45 +02:00
parent 755d907580
commit 14695bbeb9
1 changed files with 20 additions and 19 deletions

View File

@ -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):