mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
show a clearer error if the schema is too new
will hold off on making it translatable for now
This commit is contained in:
parent
d24cb66be9
commit
07343f6c9f
1 changed files with 6 additions and 3 deletions
|
@ -457,9 +457,12 @@ close the profile or restart Anki."""
|
|||
try:
|
||||
self._loadCollection()
|
||||
except Exception as e:
|
||||
showWarning(
|
||||
tr(TR.ERRORS_UNABLE_OPEN_COLLECTION) + "\n" + traceback.format_exc()
|
||||
)
|
||||
if "FileTooNew" in str(e):
|
||||
showWarning("This profile requires a newer version of Anki to open. Did you forget to use the Downgrade button prior to switching Anki versions?")
|
||||
else:
|
||||
showWarning(
|
||||
tr(TR.ERRORS_UNABLE_OPEN_COLLECTION) + "\n" + traceback.format_exc()
|
||||
)
|
||||
# clean up open collection if possible
|
||||
if self.col:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue