make doc when .git is not there

accept failure of secop.version.get_version()

Change-Id: Ia689bd4f56b848bc354c0d68826a3174f0746a97
This commit is contained in:
zolliker 2023-01-23 17:44:27 +01:00
parent c70b61e4e5
commit 6c325460f7

View File

@ -66,10 +66,14 @@ author = 'Enrico Faulhaber, Markus Zolliker'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = get_version()
# The short X.Y version.
version = release.split('-')[0]
try:
# The full version, including alpha/beta/rc tags.
release = get_version()
# The short X.Y version.
version = release.split('-')[0]
except ValueError as e:
print('WARNING: %s' % e)
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.