mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix crash when displaying values composed of white-space chars only in CLI.
Ticket #825
This commit is contained in:
parent
3e3cc55d24
commit
0c2beda3f7
@ -302,6 +302,8 @@ class textui(backend.Backend):
|
|||||||
text = textwrap.wrap(
|
text = textwrap.wrap(
|
||||||
text, line_len, break_long_words=False
|
text, line_len, break_long_words=False
|
||||||
)
|
)
|
||||||
|
if len(text) == 0:
|
||||||
|
text = [u'']
|
||||||
else:
|
else:
|
||||||
text = [text]
|
text = [text]
|
||||||
self.print_indented(format % (attr, text[0]), indent)
|
self.print_indented(format % (attr, text[0]), indent)
|
||||||
|
Loading…
Reference in New Issue
Block a user