mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Bug #1472949: stringify IOErrors in shutil.copytree when appending
them to the Error errors list.
This commit is contained in:
parent
d77167286f
commit
7a3fd89994
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ def copytree(src, dst, symlinks=False):
|
|||
copy2(srcname, dstname)
|
||||
# XXX What about devices, sockets etc.?
|
||||
except (IOError, os.error), why:
|
||||
errors.append((srcname, dstname, why))
|
||||
errors.append((srcname, dstname, str(why)))
|
||||
# catch the Error from the recursive copytree so that we can
|
||||
# continue with other files
|
||||
except Error, err:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue