Repaired handling of YAML exceptions