mirror of https://github.com/django/django.git
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:
parent
45cb728778
commit
8613b74367
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue