From 2ec399a0098b1457794b027a99c8d0ee5c84cf41 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 6 Feb 2014 06:50:41 +0900 Subject: [PATCH] catch ssl error --- aqt/sync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aqt/sync.py b/aqt/sync.py index fcadf86f7..c54000654 100644 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -180,6 +180,8 @@ AnkiWeb is too busy at the moment. Please try again in a few minutes.""") return _("Proxy authentication required.") elif "code: 413" in err: return _("Your collection or a media file is too large to sync.") + elif "EOF occurred in violation of protocol" in err: + return _("Error establishing a secure connection. This is usually caused by filtering software, or problems with your ISP.") return err def _getUserPass(self):