Raise exception on URLError

In a complex project, just printing to stdout is not enough to handle errors.
If a `URLError` occurs we should re-raise the exception so that the caller is aware of errors. Otherwise a `None` would have been returned.