Always fail with connection error in download

It can't do anything if the resp is not defined, and the connection error is
raised by get, not raise_for_status.