From 9b721531399d57886ba2e86db1296b481145776d Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 26 Sep 2005 16:30:14 +0000 Subject: [PATCH] Quick bug fix to [699] - fixes #515. git-svn-id: http://code.djangoproject.com/svn/django/trunk@701 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/cache.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/core/cache.py b/django/core/cache.py index 74ed855dde..cbf02f2f3b 100644 --- a/django/core/cache.py +++ b/django/core/cache.py @@ -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: