In the (presumably unlikely) event of `URI.parse` raising a different type of exception, won't this barf due to `valid_uri` not being set?