Skip to content

Commit

Permalink
Bugfix (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop authored Oct 4, 2023
1 parent 5469ea2 commit 9166bc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dftimewolf/lib/collectors/yara.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ def SetUp(self, rules_path: str) -> None: # pylint: disable=arguments-differ

def Process(self) -> None:
"""Collects Yara rules from a path in the local filesystem."""
if not self.rules_path:
return

with open(self.rules_path, 'r') as rules_file:
rules = rules_file.read()

Expand Down

0 comments on commit 9166bc0

Please sign in to comment.