Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Praszmo <michalpr@cert.pl>
  • Loading branch information
psrok1 and nazywam authored Jul 27, 2023
1 parent 8700565 commit 01ba8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karton/yaramatcher/yaramatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def config_from_args(cls, config: Config, args: argparse.Namespace) -> None:
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
self.yara_handler = YaraHandler(
path=self.config.get("yaramatcher", "rules", "rules")
path=self.config.get("yaramatcher", "rules", fallback="rules")
)

def scan_sample(self, sample: bytes) -> List[str]:
Expand Down

0 comments on commit 01ba8ca

Please sign in to comment.