diff options
Diffstat (limited to 'debian/patches/meaningful-error-if-no-python3-markdown.patch')
-rw-r--r-- | debian/patches/meaningful-error-if-no-python3-markdown.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/meaningful-error-if-no-python3-markdown.patch b/debian/patches/meaningful-error-if-no-python3-markdown.patch new file mode 100644 index 0000000..2b21c5d --- /dev/null +++ b/debian/patches/meaningful-error-if-no-python3-markdown.patch @@ -0,0 +1,27 @@ +From 545162e59916b3bd712d2e8e52063278cf2bb7ca Mon Sep 17 00:00:00 2001 +From: Michael Tokarev <mjt@tls.msk.ru> +Date: Fri, 2 Dec 2022 11:08:27 +0300 +Subject: print meaningful error message if python3-markdown is not installed + +--- + python/samba/netcmd/domain.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py +index 2a548ed1ad4..cfbd602dce8 100644 +--- a/python/samba/netcmd/domain.py ++++ b/python/samba/netcmd/domain.py +@@ -4133,8 +4133,8 @@ class cmd_domain_schema_upgrade(Command): + try: + from samba.ms_schema_markdown import read_ms_markdown + except ImportError as e: +- self.outf.write("Exception in importing markdown: %s" % e) +- raise CommandError('Failed to import module markdown') ++ self.outf.write("Exception in importing markdown: %s\n" % e) ++ raise CommandError('Failed to import module markdown, please install python3-markdown package') + from samba.schema import Schema + + updates_allowed_overridden = False +-- +2.30.2 + |