catching exception for number of select results