#1113: Ignore a rule that fails to load (#1124)

This commit is contained in:
Pablo Aguiar
2020-11-03 18:26:13 +01:00
committed by GitHub
parent c196e2901c
commit 9d3bcad229
4 changed files with 29 additions and 10 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ def get_loaded_rules(rules_paths):
for path in rules_paths:
if path.name != '__init__.py':
rule = Rule.from_path(path)
if rule.is_enabled:
if rule and rule.is_enabled:
yield rule