This is for ruby 1.9.3, If the YAML file is has just the contents: '%' it'll throw a syntax error that does not get caught in the catch all rescue.