Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Lib/shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,11 @@ def _copytree(entries, src, dst, symlinks, ignore, copy_function,
# catch the Error from the recursive copytree so that we can
# continue with other files
except Error as err:
errors.extend(err.args[0])
if isinstance(err.args[0], list):
# this is a recursive error
errors.extend(err.args[0])
else:
errors.append((srcname, dstname, str(err)))
except OSError as why:
errors.append((srcname, dstname, str(why)))
try:
Expand Down