Skip to content

Commit

Permalink
Merge pull request #470 from CybercentreCanada/cccs-rs-patch-1
Browse files Browse the repository at this point in the history
Cccs rs patch 1
  • Loading branch information
cccs-rs authored Sep 20, 2024
2 parents 5553700 + 0ea0277 commit dd3b76a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cape/cape_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,11 @@ def _load_rules(self):
yara_root = os.path.join(self.rules_directory, "cape")
errors = {}

if not os.path.exists(yara_root):
self.yara_sigs = None
self.yara_errors = {}
return

# Need to define each external variable that will be used in the future. Otherwise Yara will complain.
externals = {"filename": ""}
externals.update(YARA_EXTERNALS)
Expand Down

0 comments on commit dd3b76a

Please sign in to comment.