Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Escape when no files are present
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarbuzzi committed Jul 3, 2024
1 parent 6ab6e75 commit a2edd47
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def process(json_file_path: Path) -> Iterable[Type_Record_T]:
def process_folder(input_directory: Path):
print(f"processing folder : {input_directory}")

json_file_paths = input_directory.glob('*.json')
json_file_paths = list(input_directory.glob('*.json'))
if not json_file_paths:
return

type_records: List[Type_Record_T] = list(
reduce(lambda whole, part: whole + part,
Expand Down

0 comments on commit a2edd47

Please sign in to comment.