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
This commit is contained in:
Adrian Holovaty 2005-11-10 16:37:45 +00:00
parent 45cb728778
commit 8613b74367
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ class _FileCache(_SimpleCache):
os.remove(fname) os.remove(fname)
else: else:
return pickle.load(f) return pickle.load(f)
except (IOError, pickle.PickleError): except (IOError, OSError, pickle.PickleError):
pass pass
return default return default