mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix ext reference
This commit is contained in:
parent
c8d3d5a337
commit
8f8e3c3587
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ def importFile(mw, file):
|
|||
except Exception, e:
|
||||
msg = unicode(e)
|
||||
if msg == "unknownFormat":
|
||||
if ext == ".anki2":
|
||||
if file.endswith(".anki2"):
|
||||
showWarning(_("""\
|
||||
.anki2 files are not designed for importing. If you're trying to restore from a \
|
||||
backup, please see the 'Backups' section of the user manual."""))
|
||||
|
|
Loading…
Reference in a new issue