Fix download failure catching and a lint issue caused by a dumb IDE