def _check_response_error(e, message_type):
 if (e.error_code != BOTO_INSTANCE_NOT_FOUND):
  raise e
 Message.new(message_type=message_type, reason=e.error_code).write()

def _check_response_error ( e , message_type ) : if ( e . error_code != BOTO_INSTANCE_NOT_FOUND ) : raise e Message . new ( message_type = message_type , reason = e . error_code ) . write ( )
check if an exception is a transient one .