#NEWLINE# def lookup_failure( self , artifact_name ) : #NEWLINE# #INDENT# 'Looks up a failure for the given artifact name.' #NEWLINE# fn = self . get_filename ( artifact_name ) #NEWLINE# try : #NEWLINE# #INDENT# with open ( f , 'rb' ) as f : #NEWLINE# #INDENT# return BuildFailure ( json . load ( f ) ) #NEWLINE# #UNINDENT# #UNINDENT# except IOError as e : #NEWLINE# #INDENT# if ( e . errno != errno . ENOENT ) : #NEWLINE# #INDENT# raise