From 765c15c709a9f2366555ed86eecdbdc7de6721c5 Mon Sep 17 00:00:00 2001 From: Ben Newhouse Date: Tue, 27 Oct 2020 01:16:25 +0000 Subject: [PATCH] setup: link to latest docs if VCS information is not available. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- 2.30.2