[PATCH 1/2] Re: Throw errors on connection refused and on non-standard SSH ports
Nicolas Sebrecht
nicolas.s-dev at laposte.net
Sun May 8 13:04:14 BST 2011
On Sat, May 07, 2011 at 06:27:27PM +0200, Sebastian Spaeth wrote:
<...>
> diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py
> index 6e58949..9c969a4 100644
> --- a/offlineimap/imapserver.py
> +++ b/offlineimap/imapserver.py
> @@ -25,11 +25,12 @@ import time
> import hmac
> import socket
> import base64
> +import errno
>
> from StringIO import StringIO
> from platform import system
> from socket import gaierror
> -
> +from ssl import SSLError
> try:
> # do we have a recent pykerberos?
> have_gss = False
This introduce a regression if we don't want/have SSL package installed.
--
Nicolas Sebrecht
More information about the OfflineIMAP-project
mailing list