fix error handling for selecting invalid file type

(The error was never appearing because the test was missing quotation
marks.)
This commit is contained in:
Soren I. Bjornstad 2014-06-17 08:31:38 -05:00
parent e0777602db
commit 6771af40b1

View File

@ -295,7 +295,7 @@ def importFile(mw, file):
return
except Exception, e:
msg = repr(str(e))
if msg == "unknownFormat":
if msg == "'unknownFormat'":
if file.endswith(".anki2"):
showWarning(_("""\
.anki2 files are not designed for importing. If you're trying to restore from a \