diff --git a/codesectools/sasts/tools/SpotBugs/parser.py b/codesectools/sasts/tools/SpotBugs/parser.py index f5a2cce..4c4fe22 100644 --- a/codesectools/sasts/tools/SpotBugs/parser.py +++ b/codesectools/sasts/tools/SpotBugs/parser.py @@ -84,10 +84,11 @@ def __init__(self, output_dir: Path, result_data: dict, cmdout: dict) -> None: ] ) if partial_filepath.parent not in partial_parents: - filepath = next( - self.source_path.rglob(str(partial_filepath)) - ).relative_to(self.source_path) - partial_parents[partial_filepath.parent] = filepath.parent + if next(self.source_path.rglob(str(partial_filepath)), None): + filepath = next( + self.source_path.rglob(str(partial_filepath)) + ).relative_to(self.source_path) + partial_parents[partial_filepath.parent] = filepath.parent else: filepath = ( partial_parents[partial_filepath.parent] / partial_filepath.name diff --git a/pyproject.toml b/pyproject.toml index 6d990f6..e117248 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "CodeSecTools" -version = "0.13.6" +version = "0.13.7" description = "A framework for code security that provides abstractions for static analysis tools and datasets to support their integration, testing, and evaluation." readme = "README.md" license = "AGPL-3.0-only" diff --git a/uv.lock b/uv.lock index 104af77..e9cb1bc 100644 --- a/uv.lock +++ b/uv.lock @@ -221,7 +221,7 @@ wheels = [ [[package]] name = "codesectools" -version = "0.13.6" +version = "0.13.7" source = { editable = "." } dependencies = [ { name = "gitpython" },