From 9678eb17e5169278e481ba6f0591929747c71c0f Mon Sep 17 00:00:00 2001 From: Tek Date: Thu, 17 Oct 2024 11:36:33 +0200 Subject: [PATCH] Fixes a minor bug in IOC import (#553) --- src/mvt/common/indicators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mvt/common/indicators.py b/src/mvt/common/indicators.py index f94feaa..dd05aab 100644 --- a/src/mvt/common/indicators.py +++ b/src/mvt/common/indicators.py @@ -50,7 +50,7 @@ class Indicators: for path in paths: if os.path.isfile(path) and path.lower().endswith(".stix2"): self.parse_stix2(path) - if os.path.isdir(path): + elif os.path.isdir(path): for file in glob.glob( os.path.join(path, "**", "*.stix2", recursive=True) ):