#NEWLINE# def onConnectionError( self , reason ) : #NEWLINE# #INDENT# if self . deferred : #NEWLINE# #INDENT# log . warning ( 'HTTPConnectClient: Connect error: %s' , reason ) #NEWLINE# self . deferred . errback ( reason ) #NEWLINE# self . deferred = None #NEWLINE# self . transport . loseConnection ( )