Show error message when db failed to rebuild (#2043)
* Show error message when db failed to rebuild; fix #1908; * Forgot file
This commit is contained in:
parent
d38846f126
commit
9cda561091
4 changed files with 19 additions and 4 deletions
|
@ -138,7 +138,11 @@ class SiteStorage(object):
|
|||
self.event_db_busy = gevent.event.AsyncResult()
|
||||
|
||||
self.log.info("Creating tables...")
|
||||
self.db.checkTables()
|
||||
changed_tables = self.db.checkTables()
|
||||
if not changed_tables:
|
||||
# It failed
|
||||
# "Error creating table..."
|
||||
return False
|
||||
cur = self.db.getCursor()
|
||||
cur.logging = False
|
||||
s = time.time()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue