to be happy that a situation that is bad is not as bad as it could have been
be grateful / thankful for small mercies
to be happy that a situation that is bad is not as bad as it could have been
Well, at least you weren't hurt. I suppose we should be grateful for small mercies.
Definiciones del Oxford Advanced Learner's Dictionary, 9.ª edición