summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipalib/cli.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 2cd3a97c3..2d219b71b 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -302,6 +302,8 @@ class textui(backend.Backend):
text = textwrap.wrap(
text, line_len, break_long_words=False
)
+ if len(text) == 0:
+ text = [u'']
else:
text = [text]
self.print_indented(format % (attr, text[0]), indent)