From 04c5b5ae42c25256f54f981dd2bedbb5a1855be5 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Thu, 22 Oct 2009 16:47:22 +0200 Subject: Fix bug in print_attribute. When the attribute had no values an exception was generated while trying to word-wrap it. --- ipalib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index 85282a03..7913512f 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -263,7 +263,7 @@ class textui(backend.Backend): else: text = ', '.join(value) line_len = self.get_tty_width() - if line_len: + if line_len and text: s_indent = '%s%s' % ( CLI_TAB * indent, ' ' * (len(attr) + 2) ) -- cgit