fixed issue 1602:Retrieve migration data from db fails if table is not yet created

This commit is contained in:
mdipierro
2013-07-22 04:04:28 -05:00
parent 124c85a5ce
commit 87ea056565
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -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
+7 -2
View File
@@ -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