Bug #1472949: stringify IOErrors in shutil.copytree when appending

them to the Error errors list.
This commit is contained in:
Georg Brandl 2006-04-28 16:54:25 +00:00
parent d77167286f
commit 7a3fd89994
1 changed files with 1 additions and 1 deletions

View File

@ -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: