print meaningful error message if python3-markdown is not installed

This commit is contained in:
Michael Tokarev 2022-12-02 11:08:27 +03:00 committed by su-fang
parent ece8730621
commit bb00bc77a7
1 changed files with 2 additions and 2 deletions

View File

@ -4257,8 +4257,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