mirror of
https://github.com/django/django.git
synced 2024-12-25 10:35:48 +00:00
Quick bug fix to [699] - fixes #515.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2a072999ca
commit
9b72153139
@ -317,6 +317,7 @@ class _FileCache(_SimpleCache):
|
||||
filelist = os.listdir(self._dir)
|
||||
except (IOError, OSError):
|
||||
self._createdir()
|
||||
filelist = []
|
||||
if len(filelist) > self._max_entries:
|
||||
self._cull(filelist)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user