Catch OSError in copyfile(); os.utime() raises that.

This commit is contained in:
Georg Brandl 2009-11-08 16:21:02 +01:00
parent abbf78915e
commit dd500ce6fb
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@ Release 0.6.4 (in development)
* Fix the handling of non-data, but non-method descriptors in autodoc.
* When copying file times, ignore OSErrors raised by ``os.utime()``.
Release 0.6.3 (Sep 03, 2009)
============================

View File

@ -414,7 +414,7 @@ def copyfile(source, dest):
try:
# don't do full copystat because the source may be read-only
copytimes(source, dest)
except shutil.Error:
except OSError:
pass