mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-10 11:44:35 +00:00
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:
parent
330a67b5fe
commit
f6fddc1470
@ -2,7 +2,12 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1+
|
# SPDX-License-Identifier: LGPL-2.1+
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import markdown
|
|
||||||
|
try:
|
||||||
|
import markdown
|
||||||
|
except ImportError:
|
||||||
|
print("Missing 'markdown' python module")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from packaging.version import Version
|
from packaging.version import Version
|
||||||
|
Loading…
Reference in New Issue
Block a user