diff --git a/scripts/diff_jsons.py b/scripts/diff_jsons.py index 07310f986..1b0c65815 100644 --- a/scripts/diff_jsons.py +++ b/scripts/diff_jsons.py @@ -24,7 +24,7 @@ # Test for most fatal errors in regex path usage # Exclude regexes should never match `'`, otherwise the diff is always going to pass - for regex in args.exclude_regex_paths: + for regex in args.exclude_regex_paths or []: result = re.compile(regex).search("'") if result is not None: print(