From 8f8e3c35871fc9ab93ec964376a42a710aaea6b0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 27 Feb 2013 14:06:10 +0900 Subject: [PATCH] fix ext reference --- aqt/importing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/importing.py b/aqt/importing.py index 3410f4c63..0639215ec 100644 --- a/aqt/importing.py +++ b/aqt/importing.py @@ -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."""))