From fd5815653f44f1a4a20023441eb55baf05a03b03 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 11 Nov 2020 15:19:59 +1000 Subject: [PATCH] fix error exporting v2 collection when translations don't match https://forums.ankiweb.net/t/utf8-error-in-importing-deck/4430/13 --- pylib/anki/exporting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index fd0826d3e..f105e994b 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -380,7 +380,7 @@ class AnkiPackageExporter(AnkiExporter): path = namedtmp("dummy.anki2") c = Collection(path) n = c.newNote() - n[_("Front")] = "This file requires a newer version of Anki." + n.fields[0] = "This file requires a newer version of Anki." c.addNote(n) c.save() c.close(downgrade=True)