Update capa/main.py

Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
mike-hunhoff
2021-02-01 12:45:36 -07:00
committed by GitHub
parent dbc4e06657
commit 2288f38a11

View File

@@ -378,7 +378,7 @@ def get_rules(rule_path, disable_progress=False):
# to disable progress completely
pbar = lambda s, *args, **kwargs: s
for rule_path in pbar(list(rule_paths), disable=disable_progress, desc="loading ", unit=" rules"):
for rule_path in pbar(list(rule_paths), desc="loading ", unit=" rules"):
try:
rule = capa.rules.Rule.from_yaml_file(rule_path)
except capa.rules.InvalidRule: