mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
make sure to properly close the deck
This commit is contained in:
parent
9de0fc911e
commit
2129554ab1
1 changed files with 1 additions and 0 deletions
|
@ -632,6 +632,7 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
|||
pass
|
||||
# close
|
||||
self.deck.rollback()
|
||||
self.deck.close()
|
||||
self.deck = None
|
||||
if name.startswith("untitled") and not count:
|
||||
os.unlink(path)
|
||||
|
|
Loading…
Reference in a new issue