Skip to content

Commit dd6bd7c

Browse files
committed
clean: Log when failing to open file when building index
1 parent b96b28d commit dd6bd7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build_openssf_index.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def process_file(path):
8383
try:
8484
doc = read_json_file(path)
8585
return extract_entries(doc)
86-
except Exception:
86+
except Exception as e:
87+
print(f"Failed to open file {path} with error {e}. Proceeding to other files...")
8788
return []
8889

8990

0 commit comments

Comments
 (0)