fix error for case with wrong encoding or error in YAML

This commit is contained in:
stereobooster 2012-07-16 11:58:12 +03:00
parent b56a2d1ab1
commit 2dbce8ca9f
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ module Jekyll
self.content = $POSTMATCH
self.data = YAML.load($1)
end
rescue => e
rescue Exception => e
puts "YAML Exception reading #{name}: #{e.message}"
end