diff --git a/anki/decks.py b/anki/decks.py index ac1dd16fc..eba52231a 100644 --- a/anki/decks.py +++ b/anki/decks.py @@ -287,6 +287,9 @@ class DeckManager(object): self.col.modSchema() del self.dconf[str(id)] for g in self.all(): + # ignore cram decks + if 'conf' not in g: + continue if str(g['conf']) == str(id): g['conf'] = 1 self.save(g)