mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-30 19:50:08 -07:00
add try except
This commit is contained in:
parent
df8cf35c75
commit
7804e0bd7c
1 changed files with 5 additions and 2 deletions
|
@ -158,8 +158,11 @@ def process_folder ( dirpath, multi_gpu=False, cpu_only=False ):
|
|||
if is_merge:
|
||||
io.log_info (f"Copying processed files to {dirpath_parts}")
|
||||
|
||||
for (filepath, output_filepath) in result:
|
||||
shutil.copy (output_filepath, filepath)
|
||||
for (filepath, output_filepath) in result:
|
||||
try:
|
||||
shutil.copy (output_filepath, filepath)
|
||||
except:
|
||||
pass
|
||||
|
||||
io.log_info (f"Removing {output_dirpath_parts}")
|
||||
shutil.rmtree(output_dirpath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue