Skip to content

Commit

Permalink
Dedup tmp_files before deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarahui committed Oct 16, 2024
1 parent 8811d9e commit 32bc66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content_harvester/by_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def harvest_record_content(
)
tmp_files.extend(thumbnail_tmp_files)

[os.remove(filepath) for filepath in tmp_files]
[os.remove(filepath) for filepath in set(tmp_files)]

return record

Expand Down

0 comments on commit 32bc66e

Please sign in to comment.