

def connect(self):
    if (self.proxy is not None):
        return
    try:
        self.proxy = xmlrpclib.ServerProxy(self.url)
    except:
        (exc_type, exc, tb) = sys.exc_info()
        if log:
            message = str(exc).replace(self.url, self.masked_url)
            log.error(('Failed to connect to %s: %s' % (self.masked_url, message)))
        reraise(exc_type, exc, tb)

dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/_release.py _ZopeProxy.connect/original