Do not cache URLError exceptions

These kinds of exceptions are usually network or connectivity
exceptions, so there is no benefit to caching them (and in fact, may
frustrate people).