mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 22:57:11 -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
|
pass
|
||||||
deck = s.query(Deck).get(1)
|
deck = s.query(Deck).get(1)
|
||||||
if not deck:
|
if not deck:
|
||||||
raise DeckAccessError(_("Deck missing core table"))
|
raise DeckAccessError(_("Deck missing core table"),
|
||||||
|
type="nocore")
|
||||||
# attach db vars
|
# attach db vars
|
||||||
deck.path = path
|
deck.path = path
|
||||||
deck.engine = engine
|
deck.engine = engine
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue