Fixed error handling
Fixed error handling

On my computer it's failing on the first request to https://thepiratebay.org/ . I think the properties this code is handling need an HTTPError according to the doc https://docs.python.org/3/library/urllib.error.html\#urllib.error.URLError

vikstrous/pirate-get,vikstrous/pirate-get