Skip to content

Commit

Permalink
fixes linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdraven committed Apr 2, 2024
1 parent 281a2bb commit f158505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/feeds/public/otx_alienvault.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ 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}",
pattern=otx_indic["content"],
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()
Expand Down

0 comments on commit f158505

Please sign in to comment.