mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
ignore mnemosyne file format header
This commit is contained in:
parent
9f3f16414b
commit
54c6220e51
1 changed files with 0 additions and 4 deletions
|
|
@ -35,10 +35,6 @@ class Mnemosyne10Importer(Importer):
|
|||
raise ImportFormatError(type="systemError",
|
||||
info=str(e))
|
||||
header = file.readline().strip()
|
||||
if (header != "--- Mnemosyne Data Base --- Format Version 1 ---" and
|
||||
header != "--- Mnemosyne Data Base --- Format Version 2 ---"):
|
||||
raise ImportFormatError(type="versionError",
|
||||
info=header)
|
||||
# read the structure in
|
||||
try:
|
||||
struct = pickle.load(file)
|
||||
|
|
|
|||
Loading…
Reference in a new issue