add try-except around first urllib2 call