From 6c325460f75a4354472b5590f75e5451a1715a53 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Mon, 23 Jan 2023 17:44:27 +0100 Subject: [PATCH] make doc when .git is not there accept failure of secop.version.get_version() Change-Id: Ia689bd4f56b848bc354c0d68826a3174f0746a97 --- doc/source/conf.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index d319d15..e12c8ba 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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.