From f1585053fef5fe0f1b21e26090a7c47c7bfa7b27 Mon Sep 17 00:00:00 2001 From: Sebastien Larinier Date: Tue, 2 Apr 2024 07:12:35 +0200 Subject: [PATCH] fixes linter issue --- plugins/feeds/public/otx_alienvault.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/feeds/public/otx_alienvault.py b/plugins/feeds/public/otx_alienvault.py index d806ab4d8..bbf7fe0f4 100644 --- a/plugins/feeds/public/otx_alienvault.py +++ b/plugins/feeds/public/otx_alienvault.py @@ -107,7 +107,7 @@ def analyze(self, item): except Exception as e: logging.error(f"Error compiling YARA rule: {e}") continue - + t = list(r)[0] ind_obj = indicator.Indicator( name=f"{t.identifer}", @@ -115,7 +115,7 @@ def analyze(self, item): type=indicator.IndicatorType.yara, location="OTX", diamond=indicator.DiamondModel.capability, - description=t.meta['description'], + description=t.meta["description"], ).save() ind_obj.pattern = otx_indic["content"] ind_obj.save()