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:
Jacob Kaplan-Moss 2005-09-26 16:30:14 +00:00
parent 2a072999ca
commit 9b72153139
1 changed files with 1 additions and 0 deletions

View File

@ -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: