diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2016-02-02 03:48:04 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2016-02-02 04:44:07 +0100 |
commit | f68ac601ef28b1aa27d14a0dcdd5c9fdf934b6d3 (patch) | |
tree | 60f8f92797e3105eab2d0e1f34314a213265244e /accounts/utils | |
parent | 28373d74f8f118e7982c87f52447f7bb8bef7097 (diff) | |
download | web-f68ac601ef28b1aa27d14a0dcdd5c9fdf934b6d3.tar.gz web-f68ac601ef28b1aa27d14a0dcdd5c9fdf934b6d3.tar.bz2 web-f68ac601ef28b1aa27d14a0dcdd5c9fdf934b6d3.zip |
utils/console: Allow empty output with TablePrinter
Diffstat (limited to 'accounts/utils')
-rw-r--r-- | accounts/utils/console.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accounts/utils/console.py b/accounts/utils/console.py index 9996faa..8af3fb3 100644 --- a/accounts/utils/console.py +++ b/accounts/utils/console.py @@ -60,7 +60,8 @@ class TablePrinter(object): self.separator) def output(self, rows): - self._calulate_widths(rows) + if len(rows) > 0: + self._calulate_widths(rows) if self.headers is not None: self._print_row(self.headers) |