Fix null fields

This commit is contained in:
Watchful1 2024-06-02 15:39:59 -07:00
parent 0709050f08
commit 94fb40cdf4

View file

@ -276,7 +276,7 @@ def process_file(file, queue, field, values, partial, regex, split_intermediate)
if matched:
output_handle.write_line(line, observed)
file.lines_matched += 1
except (KeyError, json.JSONDecodeError) as err:
except (KeyError, json.JSONDecodeError, AttributeError) as err:
file.error_lines += 1
file.lines_processed += 1
if file.lines_processed % 1000000 == 0: