From 94fb40cdf41ad9993b8b4b3b395755d3df5a5d92 Mon Sep 17 00:00:00 2001 From: Watchful1 Date: Sun, 2 Jun 2024 15:39:59 -0700 Subject: [PATCH] Fix null fields --- scripts/combine_folder_multiprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/combine_folder_multiprocess.py b/scripts/combine_folder_multiprocess.py index 2297fab..c5695c7 100644 --- a/scripts/combine_folder_multiprocess.py +++ b/scripts/combine_folder_multiprocess.py @@ -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: