fixed issue 1602:Retrieve migration data from db fails if table is not yet created
This commit is contained in:
@@ -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
@@ -4316,8 +4316,13 @@ class DatabaseStoredFile:
|
|||||||
if exists(filename):
|
if exists(filename):
|
||||||
return True
|
return True
|
||||||
query = "SELECT path FROM web2py_filesystem WHERE path='%s'" % filename
|
query = "SELECT path FROM web2py_filesystem WHERE path='%s'" % filename
|
||||||
if db.executesql(query):
|
try:
|
||||||
return True
|
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
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user