#NEWLINE# def _buildFailed( self , reason ) : #NEWLINE# #INDENT# msg = 'Pending circuit {} failed. Reason: {}.' . format ( self . circuit_id , reason ) #NEWLINE# logging . debug ( msg ) #NEWLINE# if ( self . _conn is not None ) : #NEWLINE# #INDENT# self . _conn . removeCircuit ( self . circuit_id ) #NEWLINE# #UNINDENT# self . _circuit_manager . circuitDestroyed ( self )