[PATCH 02/15] Convert except X,T to except X as T
Łukasz Żarnowiecki
dolohow at outlook.com
Tue May 10 00:18:24 BST 2016
Signed-off-by: Łukasz Żarnowiecki <dolohow at outlook.com>
---
offlineimap/imaplibutil.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/offlineimap/imaplibutil.py b/offlineimap/imaplibutil.py
index c16cf28..692431c 100644
--- a/offlineimap/imaplibutil.py
+++ b/offlineimap/imaplibutil.py
@@ -79,19 +79,19 @@ class UsefulIMAPMixIn(object):
try:
# use socket of our own, possiblly socksified socket.
s = self.socket(af, socktype, proto)
- except socket.error, msg:
+ except socket.error as msg:
continue
try:
for i in (0, 1):
try:
s.connect(sa)
break
- except socket.error, msg:
+ except socket.error as msg:
if len(msg.args) < 2 or msg.args[0] != errno.EINTR:
raise
else:
raise socket.error(msg)
- except socket.error, msg:
+ except socket.error as msg:
s.close()
continue
break
--
2.8.2
More information about the OfflineIMAP-project
mailing list