mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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()
|
||||
deck.fixIntegrity()
|
||||
deck = DeckStorage._upgradeDeck(deck, path)
|
||||
except SyntaxError: # OperationalError, e:
|
||||
except OperationalError, e:
|
||||
engine.dispose()
|
||||
if (str(e.orig).startswith("database table is locked") or
|
||||
str(e.orig).startswith("database is locked")):
|
||||
|
|
Loading…
Reference in a new issue