Fix unintended error catch in parser