From b8ae9f06a81cb962c6b78ed260465f9d281df5f1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 19 Mar 2012 22:24:41 +0900 Subject: [PATCH] give a warning if conf load fails --- aqt/upgrade.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aqt/upgrade.py b/aqt/upgrade.py index e97e50745..c95db3e46 100644 --- a/aqt/upgrade.py +++ b/aqt/upgrade.py @@ -8,6 +8,7 @@ from anki.utils import isMac, isWin from anki import Collection from anki.importing import Anki1Importer from anki.db import DB +from aqt.utils import showWarning import aqt class Upgrader(object): @@ -24,7 +25,9 @@ class Upgrader(object): try: self._loadConf(p) except: - # can't load old config file + showWarning(_("""\ +Anki wasn't able to load your old config file. Please use File>Import \ +to import your decks from previous Anki versions.""")) return self._copySettings() # and show the wizard