trivial: show a better error why docs fails if markdown not installed

We require at least 3.3.3, but if they don't have anything at least show a message.
This commit is contained in:
Mario Limonciello 2022-09-01 10:29:57 -05:00 committed by Mario Limonciello
parent 330a67b5fe
commit f6fddc1470

View File

@ -2,7 +2,12 @@
# SPDX-License-Identifier: LGPL-2.1+
import sys
import markdown
try:
import markdown
except ImportError:
print("Missing 'markdown' python module")
sys.exit(1)
try:
from packaging.version import Version