diff --git a/doc/conf.py b/doc/conf.py index ec429c9..5b20c01 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -74,7 +74,10 @@ author = 'Invisible Things Lab' # The short X.Y version. version = open('../version').read().strip() # The full version, including alpha/beta/rc tags. -release = subprocess.check_output(['git', 'describe', '--long', '--dirty']).strip().decode() +try: + release = subprocess.check_output(['git', 'describe', '--long', '--dirty']).strip().decode() +except: + release = "1" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.