Skip to content

Commit

Permalink
fix iteration during ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Aug 12, 2024
1 parent 7ee6511 commit 7db9f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dandi_s3_log_parser/_dandi_s3_log_file_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def asset_id_handler(*, raw_asset_id: str) -> str:
ordered_parsed_s3_log_folder_path=parsed_s3_log_folder_path,
)

shutil.rmtree(path=temporary_output_folder_path, ignore_errors=True)
shutil.rmtree(path=temporary_base_folder_path, ignore_errors=True)

return None

Expand Down
2 changes: 1 addition & 1 deletion src/dandi_s3_log_parser/_order_parsed_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def order_parsed_logs(
date = datetime.datetime.now().strftime("%y%m%d")
ordering_errors_file_path = errors_folder_path / f"v{dandi_s3_log_parser_version}_{date}_ordering_errors.txt"

for unordered_parsed_s3_log_file_path in unordered_parsed_s3_log_folder_path.iterdir():
for unordered_parsed_s3_log_file_path in unordered_parsed_s3_log_folder_path.glob("*.tsv"):
try:
error_message = f"Ordering {unordered_parsed_s3_log_file_path}...\n\n"

Expand Down

0 comments on commit 7db9f9d

Please sign in to comment.