Skip to content

Commit 768129e

Browse files
committed
also catch shutil.Error in copy_dir
1 parent 3c80fef commit 768129e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/tools/filetools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ def copy_dir(path, target_path, force_in_dry_run=False, dirs_exist_ok=False, **k
20102010
shutil.copytree(path, target_path, **kwargs)
20112011

20122012
_log.info("%s copied to %s", path, target_path)
2013-
except (IOError, OSError) as err:
2013+
except (IOError, OSError, shutil.Error) as err:
20142014
raise EasyBuildError("Failed to copy directory %s to %s: %s", path, target_path, err)
20152015

20162016

0 commit comments

Comments
 (0)