#NEWLINE# @ _catch_connection_error #NEWLINE# def _send_name_claim_rpc( self , name , value , amount ) : #NEWLINE# #INDENT# rpc_conn = self . _get_rpc_conn ( ) #NEWLINE# try : #NEWLINE# #INDENT# return str ( rpc_conn . claimname ( name , value , amount ) ) #NEWLINE# #UNINDENT# except JSONRPCException as e : #NEWLINE# #INDENT# if ( ( 'message' in e . error ) and ( e . error [ 'message' ] == 'Insufficient funds' ) ) : #NEWLINE# #INDENT# raise InsufficientFundsError ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'message' in self . error ) : #NEWLINE# #INDENT# raise ValueError ( e . error [ 'message' ] )