Hm, would you prefer

    if not resp.is_redirect: return resp

?