#NEWLINE# def on_error( self , data ) : #NEWLINE# #INDENT# for error in self [ 'errors' ] : #NEWLINE# #INDENT# if isinstance ( error , InvalidProductCodeException ) : #NEWLINE# #INDENT# self . respond ( INVALID_PRODUCT_CODE , product_code = unicode ( error ) ) #NEWLINE# return