From 8613b7436700520a37c8e4488ff4d7139af17899 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 10 Nov 2005 16:37:45 +0000 Subject: [PATCH] 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 --- django/core/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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