Fix exception to urllib2