From cf89cbbff4f4b37e0e3581d19784ea9953295c97 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 25 Jul 2012 21:12:34 -0500 Subject: [PATCH] fixed issue 907 --- VERSION | 2 +- gluon/cfs.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index a5d94812..c6610881 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-07-25 21:04:51) dev +Version 2.00.0 (2012-07-25 21:12:30) dev diff --git a/gluon/cfs.py b/gluon/cfs.py index 8dd69cc2..a99f9c06 100644 --- a/gluon/cfs.py +++ b/gluon/cfs.py @@ -33,7 +33,10 @@ def getcfs(key, filename, filter=None): This is used on Google App Engine since pyc files cannot be saved. """ - t = os.stat(filename).st_mtime + try: + t = os.stat(filename).st_mtime + except OSError: + return filter() cfs_lock.acquire() item = cfs.get(key, None) cfs_lock.release()