diff --git a/pyproject.toml b/pyproject.toml index 11acceb..f9bf773 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [project] name = "sflkit" -version = "0.2.20" +version = "0.2.21" authors = [ { name = "Marius Smytzek", email = "marius.smytzek@cispa.de" }, ] diff --git a/src/sflkit/runners/run.py b/src/sflkit/runners/run.py index 3a87db0..50cae8c 100644 --- a/src/sflkit/runners/run.py +++ b/src/sflkit/runners/run.py @@ -201,7 +201,7 @@ def parse_tests(output: str) -> List[str]: obj.set_parent(current) current.add_child(obj) elif current.depth >= obj.depth: - while current.depth >= obj.depth and current: + while current and current.depth >= obj.depth: current = current.parent if current is None: trees.append(obj)