Move urllib2.Request into try/except block.