[PATCH 1/2] Add missing import of SSLError exception.
Arnaud Fontaine
arnau at debian.org
Wed Jul 6 22:08:07 BST 2011
In commit 89cbdc9, usage of SSLError was dropped but later reintroduced
without importing SSLError exception.
Signed-off-by: Arnaud Fontaine <arnau at debian.org>
---
offlineimap/imapserver.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
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?
--
1.7.5.4
More information about the OfflineIMAP-project
mailing list