diff --git a/VERSION b/VERSION index d816b64a..f29bb318 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.07.21.17.26.46 +Version 2.6.0-development+timestamp.2013.07.22.04.03.41 diff --git a/gluon/dal.py b/gluon/dal.py index 8e665a07..b0e97d82 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -4316,8 +4316,13 @@ class DatabaseStoredFile: if exists(filename): return True query = "SELECT path FROM web2py_filesystem WHERE path='%s'" % filename - if db.executesql(query): - return True + try: + if db.executesql(query): + return True + except IOError, e: + # no web2py_filesystem found? + LOGGER.error("Could not retrieve %s. %s" % (filename, e)) + pass return False