Any port in a storm
Possible interpretation: In times of danger, any shelter is better than none. In an emergency, we have to accept whatever solution presents itself (for the time being).Note: port (noun) = harbour; a place on the coast where ships can find protection from rough seas
Origin: For ships at sea (especially) in older days, a bad storm could be very dangerous, and at such times they had to find shelter in "any port", even one that they would not normally have entered.
If "any port in a storm" is true, then any solution in an emergency