Skip to content

Commit d57bac4

Browse files
committed
Use the fact that Error extends OSError
1 parent 101bf86 commit d57bac4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/shutil.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,6 @@ def _copytree(entries, src, dst, symlinks, ignore, copy_function,
533533
copy_function(srcobj, dstname)
534534
except ErrorGroup as err_group:
535535
errors.extend(err_group.args[0])
536-
except Error as err:
537-
errors.append((srcname, dstname, str(err)))
538536
except OSError as why:
539537
errors.append((srcname, dstname, str(why)))
540538
try:

0 commit comments

Comments
 (0)