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

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: