mirror of https://github.com/python/cpython
Bug #1472949: stringify IOErrors in shutil.copytree when appending
them to the Error errors list.
This commit is contained in:
parent
d77167286f
commit
7a3fd89994
|
@ -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…
Reference in New Issue