need to catch Exception to fix the build

it seems that in older versions of Psych, Psych::SyntaxError
inherits from SyntaxError rather than StandardError