From f6fddc14701676407bfacbf99d103ba87202cfdd Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Thu, 1 Sep 2022 10:29:57 -0500 Subject: [PATCH] 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. --- docs/test-deps.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/test-deps.py b/docs/test-deps.py index 5c5330cbf..c7e400a65 100755 --- a/docs/test-deps.py +++ b/docs/test-deps.py @@ -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