any port in a storm
Any solution to a difficult situation (is better than none), as in John's plan isn't ideal, but any port in a storm. This metaphor was first recorded in 1749.