diff --git a/setup.py b/setup.py index 040bb37..4cd96e7 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,9 @@ def doc_version(): return "" git = parse_git(".") - if git.exact: + if not git: + return "" + elif git.exact: return git.format_with("{tag}") else: return "latest"