mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix error exporting v2 collection when translations don't match
https://forums.ankiweb.net/t/utf8-error-in-importing-deck/4430/13
This commit is contained in:
parent
8a2cd15fd6
commit
fd5815653f
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ class AnkiPackageExporter(AnkiExporter):
|
||||||
path = namedtmp("dummy.anki2")
|
path = namedtmp("dummy.anki2")
|
||||||
c = Collection(path)
|
c = Collection(path)
|
||||||
n = c.newNote()
|
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.addNote(n)
|
||||||
c.save()
|
c.save()
|
||||||
c.close(downgrade=True)
|
c.close(downgrade=True)
|
||||||
|
|
Loading…
Reference in a new issue