From 919bb3319914ef4f7082d84714ae5330288c72be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 12 Jun 2024 09:36:19 +0200 Subject: [PATCH] Audit: Remove endline in Python version --- github_app_geo_project/module/audit/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_app_geo_project/module/audit/__init__.py b/github_app_geo_project/module/audit/__init__.py index fcc05ec929a..611b3f87e8e 100644 --- a/github_app_geo_project/module/audit/__init__.py +++ b/github_app_geo_project/module/audit/__init__.py @@ -194,7 +194,7 @@ async def _process_snyk_dpkg( with open(".tool-versions", encoding="utf-8") as file: for line in file: if line.startswith("python "): - python_version = ".".join(line.split(" ")[1].split(".")[0:2]) + python_version = ".".join(line.split(" ")[1].split(".")[0:2]).strip() break try: if python_version: