mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
re-enable locked check
This commit is contained in:
parent
1a5c8d2435
commit
9f91e904b2
1 changed files with 1 additions and 1 deletions
|
@ -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")):
|
||||||
|
|
Loading…
Reference in a new issue