mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
'no problems found' still fixes problems
This commit is contained in:
parent
f3b89df5bf
commit
dceb13c720
1 changed files with 5 additions and 2 deletions
|
@ -304,8 +304,11 @@ backup, please see the 'Backups' section of the user manual."""))
|
||||||
importer.run()
|
importer.run()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
if "invalidFile" in unicode(e):
|
if "invalidFile" in unicode(e):
|
||||||
showWarning(_("""\
|
msg = _("""\
|
||||||
Invalid file. Please run a DB check in Anki 1.2 and try again."""))
|
Invalid file. Please run a DB check in Anki 1.2 and try again.""")
|
||||||
|
msg += _(""" \
|
||||||
|
Even if the DB check reports 'no problems found', a subsequent import should work.""")
|
||||||
|
showWarning(msg)
|
||||||
elif "readonly" in unicode(e):
|
elif "readonly" in unicode(e):
|
||||||
showWarning(_("""\
|
showWarning(_("""\
|
||||||
Unable to import from a read-only file."""))
|
Unable to import from a read-only file."""))
|
||||||
|
|
Loading…
Reference in a new issue