in der Not schmeckt jedes Brot

Etymology
lit. 'in time of trouble, every bread tastes [good]'.

Proverb

 * 1) beggars can't be choosers