fix ext reference
This commit is contained in:
parent
c8d3d5a337
commit
8f8e3c3587
@ -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 New Issue
Block a user