diff options
Diffstat (limited to 'dcae-cli/dcae_cli/commands')
-rw-r--r-- | dcae-cli/dcae_cli/commands/util.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dcae-cli/dcae_cli/commands/util.py b/dcae-cli/dcae_cli/commands/util.py index 9f758e2..bc0fea3 100644 --- a/dcae-cli/dcae_cli/commands/util.py +++ b/dcae-cli/dcae_cli/commands/util.py @@ -80,6 +80,8 @@ def format_description(description, line_width=50, num_lines=3): of lines. The last line trails with ".." if the text still overflows to signal that there is more. """ + if not description: + return '' lines = textwrap.wrap(description) lines = lines[:num_lines] last_line = lines.pop() |