mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 06:37:12 -05:00
make sure to include type= when raising deck access error
This commit is contained in:
parent
a1166215fd
commit
76b114f584
1 changed files with 2 additions and 1 deletions
|
|
@ -2592,7 +2592,8 @@ class DeckStorage(object):
|
|||
pass
|
||||
deck = s.query(Deck).get(1)
|
||||
if not deck:
|
||||
raise DeckAccessError(_("Deck missing core table"))
|
||||
raise DeckAccessError(_("Deck missing core table"),
|
||||
type="nocore")
|
||||
# attach db vars
|
||||
deck.path = path
|
||||
deck.engine = engine
|
||||
|
|
|
|||
Loading…
Reference in a new issue