From fe00f099f618e2628560552a6592c61030207a37 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Wed, 20 Jun 2018 17:59:49 +0200 Subject: [PATCH] add logs --- misp_modules/modules/expansion/onyphe_full.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misp_modules/modules/expansion/onyphe_full.py b/misp_modules/modules/expansion/onyphe_full.py index acdaced..66c208f 100644 --- a/misp_modules/modules/expansion/onyphe_full.py +++ b/misp_modules/modules/expansion/onyphe_full.py @@ -22,7 +22,6 @@ moduleconfig = ['apikey'] def handler(q=False): - print(q) if q: request = json.loads(q) @@ -83,7 +82,8 @@ def handle_ip(api, ip, misperrors): if status_ok: result_filtered['results'].append(r) else: - return r + misperrors['error'] = 'Error datascan result' + return misperrors r, status_ok = expand_forward(api, ip, misperrors) @@ -91,8 +91,8 @@ def handle_ip(api, ip, misperrors): result_filtered['results'].extend(r) else: misperrors['error'] = 'Error forward result' - return - # + return misperrors + r, status_ok = expand_reverse(api, ip, misperrors) if status_ok: