fix error for case with wrong encoding or error in YAML
This commit is contained in:
parent
b56a2d1ab1
commit
2dbce8ca9f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue