From 49872485dcafe4d71df7122935c5ccf12bd60ab8 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Thu, 12 Jan 2012 14:17:11 -0600 Subject: [PATCH] problem with cache exception fixed, thanks Niphlod --- VERSION | 2 +- gluon/cache.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index d4fe3220..66486863 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-01-12 14:14:38) stable +Version 1.99.4 (2012-01-12 14:17:04) stable diff --git a/gluon/cache.py b/gluon/cache.py index 1c5544e4..06d7b506 100644 --- a/gluon/cache.py +++ b/gluon/cache.py @@ -261,6 +261,8 @@ class CacheOnDisk(CacheAbstract): os.unlink(self.shelve_name) except IOError: logger.warn('unable to delete file %s' % self.shelve_name) + except OSError: + logger.warn('unable to delete file %s' % self.shelve_name) if locker_locked: portalocker.unlock(locker) if locker: