Skip to content

Commit

Permalink
Merge pull request #5 from bmiklautz/notags
Browse files Browse the repository at this point in the history
fix: python error if no tag is found
  • Loading branch information
dolfinus authored Nov 24, 2020
2 parents bc7e350 + fbcb590 commit b808b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools_git_versioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def version_from_git(template=DEFAULT_TEMPLATE,
else:
return version_callback

if not os.path.exists(version_file):
if version_file is None or not os.path.exists(version_file):
return starting_version
else:
from_file = True
Expand Down

0 comments on commit b808b01

Please sign in to comment.