diff options
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r-- | Lib/shutil.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py index 5bc4377..30116d2 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -124,6 +124,10 @@ def copytree(src, dst, symlinks=False): # XXX What about devices, sockets etc.? except (IOError, os.error), why: errors.append((srcname, dstname, why)) + # catch the Error from the recursive copytree so that we can + # continue with other files + except Error, err: + errors.extend(err.args[0]) if errors: raise Error, errors |