My dad always said, If someone hands you a lemon, make lemonade. Plus that also works wonderfully as a metaphor.
or simply: