re-enable locked check

This commit is contained in:
Damien Elmes 2010-12-07 17:18:17 +09:00
parent 1a5c8d2435
commit 9f91e904b2

View file

@ -3648,7 +3648,7 @@ class DeckStorage(object):
traceback.print_exc() traceback.print_exc()
deck.fixIntegrity() deck.fixIntegrity()
deck = DeckStorage._upgradeDeck(deck, path) deck = DeckStorage._upgradeDeck(deck, path)
except SyntaxError: # OperationalError, e: except OperationalError, e:
engine.dispose() engine.dispose()
if (str(e.orig).startswith("database table is locked") or if (str(e.orig).startswith("database table is locked") or
str(e.orig).startswith("database is locked")): str(e.orig).startswith("database is locked")):