It is *wrong* to place this here, because the request is made when `urlopen(url)` is hit, and if any exception raises, it is not raise here, but up there. So the right thing to do is to move this line before `resp = urlopen(url)`.

I am doing it on my branch, btw.