def connectionFailed(self, failure):
        """
        Called if connecting failed.

        Usually this will be due to a DNS lookup failure.
        """

        Called if connecting failed.

        Usually this will be due to a DNS lookup failure.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/protocol.py