Skip to content

Commit

Permalink
Generalize version str exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmig committed Aug 9, 2023
1 parent c21187d commit abe5833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_version_str(base_dir: str) -> str:
["git", f"--git-dir={base_dir}/.git", "describe", "--always"]
).strip().decode("utf-8")
except subprocess.CalledProcessError as e:
print(f"Could not find git repo! Error: '{e}'")
print(f"Version not found. Error: '{e}'")
return "no version available"
if last_tag_description.startswith("v"):
return last_tag_description
Expand Down

0 comments on commit abe5833

Please sign in to comment.