From 9e50b146519a05a6828ecb876296f6ca5ff4a62a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 15 Sep 2012 09:44:56 +0900 Subject: [PATCH] warn about .anki2 import --- aqt/importing.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aqt/importing.py b/aqt/importing.py index cbd5de512..dbb3f2466 100644 --- a/aqt/importing.py +++ b/aqt/importing.py @@ -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")