#NEWLINE# def _request_failed( self , err , peer ) : #NEWLINE# #INDENT# if ( not err . check ( RequestCanceledError ) ) : #NEWLINE# #INDENT# log . warning ( 'A peer failed to send a valid public key response. Error: %s, peer: %s' , err . getErrorMessage ( ) , str ( peer ) ) #NEWLINE# return err