Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 8613b7436700520a37c8e4488ff4d7139af17899 1 parent 45cb728
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/cache.py
View
2  django/core/cache.py
@@ -303,7 +303,7 @@ def get(self, key, default=None):
os.remove(fname)
else:
return pickle.load(f)
- except (IOError, pickle.PickleError):
+ except (IOError, OSError, pickle.PickleError):
pass
return default

0 comments on commit 8613b74

Please sign in to comment.
Something went wrong with that request. Please try again.