From e0f563596d5425b8713866133dc13a7ed929392f Mon Sep 17 00:00:00 2001 From: Nex Date: Wed, 17 Aug 2022 15:58:53 +0200 Subject: [PATCH] Setting a default value for list of ioc files in case none was specified --- mvt/common/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mvt/common/command.py b/mvt/common/command.py index 73929d1..1494b5d 100644 --- a/mvt/common/command.py +++ b/mvt/common/command.py @@ -34,14 +34,14 @@ class Command: self.target_path = target_path self.results_path = results_path - self.ioc_files = ioc_files + self.ioc_files = ioc_files if ioc_files else [] self.module_name = module_name self.serial = serial self.fast_mode = fast_mode self.log = log self.iocs = Indicators(log=log) - self.iocs.load_indicators_files(ioc_files) + self.iocs.load_indicators_files(self.ioc_files) # This list will contain all executed modules. # We can use this to reference e.g. self.executed[0].results.