mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
warn about .anki2 import
This commit is contained in:
parent
129d27b9f3
commit
9e50b14651
1 changed files with 6 additions and 1 deletions
|
@ -279,7 +279,12 @@ def importFile(mw, file):
|
|||
except Exception, e:
|
||||
msg = unicode(e)
|
||||
if msg == "unknownFormat":
|
||||
showWarning(_("Unknown file format."))
|
||||
if ext == ".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."""))
|
||||
else:
|
||||
showWarning(_("Unknown file format."))
|
||||
else:
|
||||
msg = _("Import failed. Debugging info:\n")
|
||||
msg += unicode(traceback.format_exc(), "ascii", "replace")
|
||||
|
|
Loading…
Reference in a new issue