diff --git a/CHANGES.md b/CHANGES.md index 9532089..8e1aaf2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # Changelog +**9.3.2** (2023-12-01) + * Handled NullPointer in GitLab coverage script + **9.3.1** (2023-11-27) * Fixed wrong path in validator documentation * Added missing German translation diff --git a/ambient_toolbox/__init__.py b/ambient_toolbox/__init__.py index 727f398..e415b7a 100644 --- a/ambient_toolbox/__init__.py +++ b/ambient_toolbox/__init__.py @@ -1,3 +1,3 @@ """Python toolbox of Ambient Digital containing an abundance of useful tools and gadgets.""" -__version__ = "9.3.1" +__version__ = "9.3.2" diff --git a/ambient_toolbox/gitlab/coverage.py b/ambient_toolbox/gitlab/coverage.py index 061fac4..5f28cc9 100644 --- a/ambient_toolbox/gitlab/coverage.py +++ b/ambient_toolbox/gitlab/coverage.py @@ -116,9 +116,9 @@ def get_coverage_from_pipeline(self, pipeline_id: int, job_name: str) -> (float, job_response.content.decode("utf-8"), re.DOTALL | re.MULTILINE, ) - # print(job_log.group()) + job_log_group = job_log.group() if job_log else None - return coverage_job["coverage"] if coverage_job else 0.0, coverages_total, job_log.group() + return coverage_job["coverage"] if coverage_job else 0.0, coverages_total, job_log_group @staticmethod def color_text(sign: int, prefix: str, target: float, current: float, diff: float):