print syntax error when json dbschema.json failed
This commit is contained in:
parent
b2e1f61ff7
commit
99aecedd0b
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class SiteStorage:
|
|||
schema = self.loadJson("dbschema.json")
|
||||
db_path = self.getPath(schema["db_file"])
|
||||
except Exception, err:
|
||||
raise Exception("dbschema.json is not a valid JSON: %s", err)
|
||||
raise Exception("dbschema.json is not a valid JSON: %s" % err)
|
||||
|
||||
if check:
|
||||
if not os.path.isfile(db_path) or os.path.getsize(db_path) == 0: # Not exist or null
|
||||
|
|
Loading…
Reference in a new issue