From a8ae6e06e9d23b835c724fa6099290fb09415534 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Wed, 11 Jul 2018 12:09:34 +0200 Subject: [PATCH] add a test to check if the list is not empty --- misp_modules/modules/expansion/dnstrails.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misp_modules/modules/expansion/dnstrails.py b/misp_modules/modules/expansion/dnstrails.py index eab1ae7..5e85db5 100644 --- a/misp_modules/modules/expansion/dnstrails.py +++ b/misp_modules/modules/expansion/dnstrails.py @@ -123,6 +123,8 @@ def handle_domain(api, domain, misperrors): misperrors['error'] = misperrors[ 'error'] + ' Error in expand History DNS' return misperrors + print(result_filtered) + print(misperrors) return result_filtered