mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
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:
parent
e0777602db
commit
6771af40b1
1 changed files with 1 additions and 1 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue