mirror of https://gitee.com/openkylin/samba.git
print meaningful error message if python3-markdown is not installed
This commit is contained in:
parent
ece8730621
commit
bb00bc77a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue