mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
better error report if deck is missing decks table
This commit is contained in:
parent
b237bcbdf0
commit
22b086fbad
1 changed files with 2 additions and 0 deletions
|
@ -2591,6 +2591,8 @@ class DeckStorage(object):
|
|||
except:
|
||||
pass
|
||||
deck = s.query(Deck).get(1)
|
||||
if not deck:
|
||||
raise DeckAccessError(_("Deck missing core table"))
|
||||
# attach db vars
|
||||
deck.path = path
|
||||
deck.engine = engine
|
||||
|
|
Loading…
Reference in a new issue