add try except
This commit is contained in:
@@ -159,7 +159,10 @@ def process_folder ( dirpath, multi_gpu=False, cpu_only=False ):
|
|||||||
io.log_info (f"Copying processed files to {dirpath_parts}")
|
io.log_info (f"Copying processed files to {dirpath_parts}")
|
||||||
|
|
||||||
for (filepath, output_filepath) in result:
|
for (filepath, output_filepath) in result:
|
||||||
|
try:
|
||||||
shutil.copy (output_filepath, filepath)
|
shutil.copy (output_filepath, filepath)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
io.log_info (f"Removing {output_dirpath_parts}")
|
io.log_info (f"Removing {output_dirpath_parts}")
|
||||||
shutil.rmtree(output_dirpath)
|
shutil.rmtree(output_dirpath)
|
||||||
|
|||||||
Reference in New Issue
Block a user