Skip to content

Commit b569c84

Browse files
committed
doc - Fix import error introduced by 1450a0c
* See: 1450a0c
1 parent b835d57 commit b569c84

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docs/source/conf.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import sys
88
from pathlib import Path
99

10-
from overpy import __about__ as overpy_about
1110

1211
# If extensions (or modules to document with autodoc) are in another directory,
1312
# add these directories to sys.path here. If the directory is relative to the
@@ -51,10 +50,15 @@
5150
# |version| and |release|, also used in various other places throughout the
5251
# built documents.
5352
#
54-
# The short X.Y version.
55-
version = overpy_about.__version__
56-
# The full version, including alpha/beta/rc tags.
57-
release = overpy_about.__version__
53+
try:
54+
from overpy import __about__ as overpy_about
55+
# The short X.Y version.
56+
version = overpy_about.__version__
57+
# The full version, including alpha/beta/rc tags.
58+
release = overpy_about.__version__
59+
except ImportError:
60+
version = "unknown"
61+
release = version
5862

5963
# The language for content autogenerated by Sphinx. Refer to documentation
6064
# for a list of supported languages.

0 commit comments

Comments
 (0)