From e1ecae0ecb777274e20e8fa09ecb5bd90969e6ac Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 12 Sep 2010 12:21:18 +0900 Subject: [PATCH] facts missing warning --- ankiqt/ui/sync.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/sync.py b/ankiqt/ui/sync.py index 18136037b..eabedbbdf 100755 --- a/ankiqt/ui/sync.py +++ b/ankiqt/ui/sync.py @@ -79,7 +79,12 @@ class Sync(QThread): elif error.data.get('status') == "oldVersion": msg=_("The sync protocol has changed. Please upgrade.") else: - msg=_("Unknown error: %s") % traceback.format_exc() + tb = traceback.format_exc() + if "missingFacts" in tb: + msg=_("""Facts were missing after sync, so the \ +sync was aborted. Please report this error.""") + else: + msg=_("Unknown error: %s") % tb return msg def connect(self, *args):