From 7a3fd89994b8f79878a2b2d861ed1862b24c5bfe Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 28 Apr 2006 16:54:25 +0000 Subject: [PATCH] Bug #1472949: stringify IOErrors in shutil.copytree when appending them to the Error errors list. --- Lib/shutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/shutil.py b/Lib/shutil.py index 2fca61c164d..c50184c733c 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -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: