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.