in der Not frisst der Teufel Fliegen

Etymology
lit. 'when in need, the devil will eat flies'.

Proverb

 * 1) in times of need one must do and accept things one otherwise would not; beggars can't be choosers; desperate times require desperate measures