From dd500ce6fba731671d480e33f7c3ea04d3f4dc46 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 8 Nov 2009 16:21:02 +0100 Subject: [PATCH] Catch OSError in copyfile(); os.utime() raises that. --- CHANGES | 2 ++ sphinx/util/__init__.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index bb6076d08..8e070c1e3 100644 --- a/CHANGES +++ b/CHANGES @@ -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) ============================ diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py index ec7f164fa..257143266 100644 --- a/sphinx/util/__init__.py +++ b/sphinx/util/__init__.py @@ -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