

def connectionTaskFailed(self, connection_task, reason, fprint=None):
    'For every pending request for this connection, errback the request\n        deferred. Remove this connection from the pending map.\n\n        Called when the TLS connection to the IP of relay with\n        *fingerprint* fails.\n\n        :param reason reason: reason this connection failed\n        :param str fingerprint: fingerprint of the relay this connection\n            failed to\n        '
    fprint = (fprint or connection_task.micro_status_entry.fingerprint)
    try:
        for request in self._pending_request_dict[reason]:
            request.errback(reason)
        del self._pending_request_dict[fprint]
    except KeyError:
        msg = 'ConnectionManager notified that a connection to {} failed, but ConnectionManager has no reference to this connection. Dropping.'.format(fprint)
        logging.debug(msg)

dataset/ETHPy150Open nskinkel/oppy/oppy/connection/connectionmanager.py ConnectionManager.connectionTaskFailed/VarMisuse@43/186 `fprint`->`reason`