#NEWLINE# def get_match( reference ) : #NEWLINE# #INDENT# " Try to pull the referenced match from Riot's servers. If we can an error that\n        we should retry, we will. If it fails a second time, we just skip it.\n    " #NEWLINE# try : #NEWLINE# #INDENT# return riotapi . get_match ( reference ) #NEWLINE# #UNINDENT# except APIError as error : #NEWLINE# #INDENT# if ( error . error_code in [ 500 ] ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return riotapi . get_match ( reference ) #NEWLINE# #UNINDENT# except APIError as another_error : #NEWLINE# #INDENT# if ( another_error . error_code in [ 500 , 400 , 404 ] ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise reference #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( error . error_code in [ 400 , 404 ] ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise error