diff options
author | VG <vg@devys.org> | 2015-12-22 17:46:09 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2015-12-22 17:46:09 +0100 |
commit | 1329f4dfb86411a8eae3d74a518523c15cec06f3 (patch) | |
tree | 7c69277252c19784839d84646002af661d52c518 | |
parent | 8bc29f30588b1fea0455208d3db5c47a1ae43a55 (diff) | |
download | climl-1329f4dfb86411a8eae3d74a518523c15cec06f3.tar.gz climl-1329f4dfb86411a8eae3d74a518523c15cec06f3.tar.bz2 climl-1329f4dfb86411a8eae3d74a518523c15cec06f3.zip |
fix exception handling syntax error
-rw-r--r-- | climl_imap_bridge.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/climl_imap_bridge.py b/climl_imap_bridge.py index be0864a..9466a96 100644 --- a/climl_imap_bridge.py +++ b/climl_imap_bridge.py @@ -52,8 +52,9 @@ def connect_to_imap(conf, password): try: yield connection - except IMAPClient.AbortError, socket.error, socket.timeout, \ - backports.ssl.SSLError, backports.ssl.CertificateError: + connection.logout() + except (imapclient.AbortError, socket.error, socket.timeout, + backports.ssl.SSLError, backports.ssl.CertificateError): raise else: connection.logout() |