the good parts or features of a mostly unpleasant situation
There's a bright side to this – at least you can learn from your mistake. Usage notes: often used in the form look on the bright side: They tried to look on the bright side when their flight was rerouted to another city.