al mal tiempo, buena cara

Etymology
lit. 'to bad weather, (put on a) good face'.

Phrase

 * 1)  when life gives you lemons, make lemonade