Skip to content

Commit

Permalink
change iter by list
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdraven committed Mar 29, 2024
1 parent 2235752 commit 92b6b09
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions plugins/feeds/public/otx_alienvault.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,10 @@ def analyze(self, item):
except Exception as e:
logging.error(f"Error compiling YARA rule: {e}")
continue

for t in r:
ind_obj.name = t.identifier
if "description" in t.meta:
ind_obj.description = t.meta["description"]
t = list(r)[0]
ind_obj.name = t.identifier
if "description" in t.meta:
ind_obj.description = t.meta["description"]

ind_obj.pattern = otx_indic["content"]
ind_obj.save()
Expand Down

0 comments on commit 92b6b09

Please sign in to comment.