Add try/except logic on urlfetch call