From a7427848737d7f095a44b9f61cb4ff067e132a14 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 28 Aug 2012 12:37:37 +0900 Subject: [PATCH] fix return when collection corrupt --- anki/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/collection.py b/anki/collection.py index 3153f6e7b..d2cecebf5 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -625,7 +625,7 @@ where c.nid == f.id self.save() oldSize = os.stat(self.path)[stat.ST_SIZE] if self.db.scalar("pragma integrity_check") != "ok": - return _("Collection is corrupt. Please see the manual.") + return (_("Collection is corrupt. Please see the manual."), False) # delete any notes with missing cards ids = self.db.list(""" select id from notes where id not in (select distinct nid from cards)""")