summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/samba/netcmd/domain.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py
index 9d44d6d5ea4..80811154d4d 100644
--- a/python/samba/netcmd/domain.py
+++ b/python/samba/netcmd/domain.py
@@ -4110,7 +4110,11 @@ class cmd_domain_schema_upgrade(Command):
return count
def run(self, **kwargs):
- from samba.ms_schema_markdown import read_ms_markdown
+ 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')
from samba.schema import Schema
updates_allowed_overridden = False