Better compat with old versions of Anki

This commit is contained in:
Alex Yatskov 2021-03-06 21:16:19 -08:00
parent 27a8678f88
commit 9a18ae0b11

View File

@ -37,9 +37,13 @@ from anki.cards import Card
from anki.exporting import AnkiPackageExporter from anki.exporting import AnkiPackageExporter
from anki.importing import AnkiPackageImporter from anki.importing import AnkiPackageImporter
from anki.notes import Note from anki.notes import Note
from anki.rsbackend import NotFoundError
from anki.utils import joinFields, intTime, guid64, fieldChecksum from anki.utils import joinFields, intTime, guid64, fieldChecksum
try:
from anki.rsbackend import NotFoundError
except:
NotFoundError = Exception
from . import web, util from . import web, util