diff options
-rwxr-xr-x | tools/extra/parse_log.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/extra/parse_log.py b/tools/extra/parse_log.py index 48f9bee0..bb9b65ad 100755 --- a/tools/extra/parse_log.py +++ b/tools/extra/parse_log.py @@ -149,6 +149,11 @@ def write_csv(output_filename, dict_list, delimiter, verbose=False): """Write a CSV file """ + if not dict_list: + if verbose: + print('Not writing %s; no lines to write' % output_filename) + return + dialect = csv.excel dialect.delimiter = delimiter |