From 8bac28470f7ec6d35917ad2ad18f17bf532e9d75 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 9 Jun 2020 12:06:08 +1000 Subject: [PATCH] fix error when importing v2 apkg https://anki.tenderapp.com/discussions/ankidesktop/42070-anki-closes-without-warning-when-importing-conflicting-shared-deck --- pylib/anki/importing/anki2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylib/anki/importing/anki2.py b/pylib/anki/importing/anki2.py index 66561e3ee..42524b44a 100644 --- a/pylib/anki/importing/anki2.py +++ b/pylib/anki/importing/anki2.py @@ -295,6 +295,7 @@ class Anki2Importer(Importer): def _importCards(self) -> None: if self.mustResetLearning: + self.src.modSchema(check=False) self.src.changeSchedulerVer(2) # build map of (guid, ord) -> cid and used id cache self._cards: Dict[Tuple[str, int], int] = {}