updated error catching in intersect_points
updated error catching in intersect_points