added a try except to segmentation csv