Skip to content

Commit

Permalink
Audit: Remove endline in Python version
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 12, 2024
1 parent b883f46 commit 919bb33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_app_geo_project/module/audit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 919bb33

Please sign in to comment.