Skip to content

Commit 0e6dd7b

Browse files
committed
fix(batch_process.py): remove non-exist file error
1 parent 876bf13 commit 0e6dd7b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

batch_process.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def remove_redundant_stuff(main_directory: str) -> None:
7171
f"{main_directory}/output/paper_original",
7272
]
7373
for folder in redundant_folders:
74-
shutil.rmtree(folder)
74+
if os.path.exists(folder):
75+
shutil.rmtree(folder)
7576

7677

7778
def process_one_file(file_name) -> None:

0 commit comments

Comments
 (0)