Commit 6445101c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Remove a logging message and the related try/finally block.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1520 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3ac8eab4
......@@ -17,7 +17,6 @@
import socket
import errno
from neo import logging
# Global connector registry.
# Fill by calling registerConnectorHandler.
......@@ -63,18 +62,14 @@ class SocketConnector:
self.is_closed = False
self.remote_addr = addr
try:
try:
self.socket.connect(addr)
except socket.error, (err, errmsg):
if err == errno.EINPROGRESS:
raise ConnectorInProgressException
if err == errno.ECONNREFUSED:
raise ConnectorConnectionRefusedException
raise ConnectorException, 'makeClientConnection to %s failed:' \
' %s:%s' % (addr, err, errmsg)
finally:
logging.debug('%r connecting to %r', self.socket.getsockname(),
addr)
self.socket.connect(addr)
except socket.error, (err, errmsg):
if err == errno.EINPROGRESS:
raise ConnectorInProgressException
if err == errno.ECONNREFUSED:
raise ConnectorConnectionRefusedException
raise ConnectorException, 'makeClientConnection to %s failed:' \
' %s:%s' % (addr, err, errmsg)
def makeListeningConnection(self, addr):
self.is_closed = False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment