Corrected exception catching in predParser