summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-11-10 16:37:45 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-11-10 16:37:45 +0000
commit8613b7436700520a37c8e4488ff4d7139af17899 (patch)
treef28f0fc11c2f6c727f14f59b63874a562e34727f
parent45cb72877803ea7c9ff52ee42b6a9f9755a5af86 (diff)
Fixed #763 -- cache system now catches OSError for os.remove() call. Thanks, Eugene
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1158 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/cache.py b/django/core/cache.py
index a479d16dc3..a619dd3fbf 100644
--- a/django/core/cache.py
+++ b/django/core/cache.py
@@ -303,7 +303,7 @@ class _FileCache(_SimpleCache):
os.remove(fname)
else:
return pickle.load(f)
- except (IOError, pickle.PickleError):
+ except (IOError, OSError, pickle.PickleError):
pass
return default