fix: error handling for urllib2.URLError