diff --git a/weboob/tools/application/formatters/table.py b/weboob/tools/application/formatters/table.py index 6e6f1143..b1c6373b 100644 --- a/weboob/tools/application/formatters/table.py +++ b/weboob/tools/application/formatters/table.py @@ -37,6 +37,8 @@ class TableFormatter(IFormatter): self.queue.append(formatted.values()) def flush(self): + if self.column_headers is None: + return None table = PrettyTable(self.column_headers) for column_header in self.column_headers: table.set_field_align(column_header, 'l')