diff --git a/docs/conf.py b/docs/conf.py index 859c6b9..04a2301 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -79,7 +79,7 @@ author = "Simon Willison" # # The short X.Y version. pipe = Popen("git describe --tags --always", stdout=PIPE, shell=True) -git_version = pipe.stdout.read().decode("utf8") +git_version = pipe.stdout.read().decode("utf8") if pipe.stdout else "" if git_version: version = git_version.rsplit("-", 1)[0]