mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-25 19:30:54 +00:00
Fix a try/catch
This commit is contained in:
parent
1af4601276
commit
14a6cd10b4
1 changed files with 2 additions and 2 deletions
|
@ -44,9 +44,9 @@ def has_right(owner, user, password):
|
||||||
sock.send(line)
|
sock.send(line)
|
||||||
data = sock.recv(1024)
|
data = sock.recv(1024)
|
||||||
sock.close()
|
sock.close()
|
||||||
except socket.error, (_, message):
|
except socket.error as exception:
|
||||||
log.LOGGER.debug(
|
log.LOGGER.debug(
|
||||||
"Unable to communicate with Courier socket: %s" % message)
|
"Unable to communicate with Courier socket: %s" % exception)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
log.LOGGER.debug("Got Courier socket response: %r" % data)
|
log.LOGGER.debug("Got Courier socket response: %r" % data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue