[bugfix] slightly wrong if condition

This commit is contained in:
Marcel Paffrath 2023-02-17 14:16:38 +01:00
parent b875e63f83
commit 305ab25ab2
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -211,3 +211,4 @@ flycheck_*.el
/network-security.data
/__simulate_fail.json

View File

@ -657,8 +657,8 @@ class StationQC(object):
# if first entry was no error but all others are, return True (-> new Fail n_track times)
if not previous_errors[0] and all(previous_errors[1:]):
return True
# in case previous_errors exists, last item is error but not all items are error, error still active
elif previous_errors and previous_errors[-1] and not all(previous_errors):
# in case previous_errors exist, last item is error but not all items are error, error still active
if previous_errors and previous_errors[-1] and not all(previous_errors):
return 'active'
return False