mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
facts missing warning
This commit is contained in:
parent
ac8da946e0
commit
e1ecae0ecb
1 changed files with 6 additions and 1 deletions
|
@ -79,7 +79,12 @@ class Sync(QThread):
|
||||||
elif error.data.get('status') == "oldVersion":
|
elif error.data.get('status') == "oldVersion":
|
||||||
msg=_("The sync protocol has changed. Please upgrade.")
|
msg=_("The sync protocol has changed. Please upgrade.")
|
||||||
else:
|
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
|
return msg
|
||||||
|
|
||||||
def connect(self, *args):
|
def connect(self, *args):
|
||||||
|
|
Loading…
Reference in a new issue