I am successful in getting all the Headlines from a news site, but after it fetches all the data, the python programme crashes with the following error :