#NEWLINE# def _get_node( name ) : #NEWLINE# #INDENT# for attempt in reversed ( list ( range ( 10 ) ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return list_nodes_full ( ) [ attempt ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# log . debug ( "Failed to get the data for node '{0}'. Remaining attempts: {1}" . format ( name , attempt ) ) #NEWLINE# time . sleep ( 0.5 ) #NEWLINE# #UNINDENT# #UNINDENT# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# }