From 073f129ab852eea009cd35d38142cd437f49eca1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 29 Jan 2013 09:05:55 +0900 Subject: [PATCH] fix media sanity fail being identified as normal sanity error --- anki/sync.py | 2 +- aqt/sync.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/sync.py b/anki/sync.py index b61fd662b..9d5dd4c21 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -142,7 +142,7 @@ class Syncer(object): self.col.rollback() self.col.modSchema() self.col.save() - raise Exception("sanity check failed") + raise Exception("collection sanity check failed") # finalize runHook("sync", "finalize") mod = self.server.finish() diff --git a/aqt/sync.py b/aqt/sync.py index ca671f2b4..1bbf3c39b 100644 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -134,7 +134,7 @@ AnkiWeb is too busy at the moment. Please try again in a few minutes.""") "Antivirus or firewall software is preventing Anki from connecting to the internet.") elif "407" in err: return _("Proxy authentication required.") - elif "sanity check failed" in err: + elif "collection sanity check failed" in err: return _("After syncing, the collection was in an inconsistent \ state. To fix this problem, Anki will force a full sync. Please sync again, and \ choose which side you would like to keep.")