From 14a6cd10b4b33e543a1204cc76907719df814072 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Thu, 27 Oct 2011 13:25:06 +0200 Subject: [PATCH] Fix a try/catch --- radicale/acl/courier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/acl/courier.py b/radicale/acl/courier.py index a2c2b1f..c919aa0 100644 --- a/radicale/acl/courier.py +++ b/radicale/acl/courier.py @@ -44,9 +44,9 @@ def has_right(owner, user, password): sock.send(line) data = sock.recv(1024) sock.close() - except socket.error, (_, message): + except socket.error as exception: log.LOGGER.debug( - "Unable to communicate with Courier socket: %s" % message) + "Unable to communicate with Courier socket: %s" % exception) return False log.LOGGER.debug("Got Courier socket response: %r" % data)