Season scallops with salt and pepper, then dredge in flour.
Melt butter in a skillet over medium heat and add scallops. Cook for 1 to 2 minutes per side. Add pesto and capers; mix well. Stir in heavy cream and bring to a boil. Remove from heat and serve.