print meaningful error message if python3-markdown is not installed
authorMichael Tokarev <mjt@tls.msk.ru>
Fri, 2 Dec 2022 08:08:27 +0000 (11:08 +0300)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 12 Oct 2023 15:37:21 +0000 (16:37 +0100)
Gbp-Pq: Name meaningful-error-if-no-python3-markdown.patch

python/samba/netcmd/domain/schemaupgrade.py

index 1d67ab58c153788589c0c4e78e958a038162947c..858802635a2eeeabd31c6bd3ed9ff7eb96668094 100644 (file)
@@ -228,8 +228,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