From 09ba269576ddb969e4d294211324fd4ae69daa12 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine Date: Wed, 6 Jul 2011 23:08:07 +0200 Subject: [PATCH] Add missing import of SSLError exception. In commit 89cbdc9, usage of SSLError was dropped but later reintroduced without importing SSLError exception. Signed-off-by: Arnaud Fontaine Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/imapserver.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index 0713eb8..a235fd5 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -26,6 +26,11 @@ import socket import base64 from socket import gaierror +try: + from ssl import SSLError +except ImportError: + # Protect against python<2.6, use dummy and won't get SSL errors. + SSLError = None try: # do we have a recent pykerberos?