catching exception if cannot find the url