fix: wrong check for candidates faulty flag

This commit is contained in:
Robert Kaussow 2021-01-19 22:33:30 +01:00
parent d7d50ead10
commit b560222281
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -89,7 +89,7 @@ def get_normalized_tasks(candidate, settings, full=False):
normalized = [] normalized = []
errors = [] errors = []
if candidate.faulty: if not candidate.faulty:
try: try:
with codecs.open(candidate.path, mode="rb", encoding="utf-8") as f: with codecs.open(candidate.path, mode="rb", encoding="utf-8") as f:
yamllines = parse_yaml_linenumbers(f, candidate.path) yamllines = parse_yaml_linenumbers(f, candidate.path)