Returning an empty Hash if no config exists. Fixes #1005.

This commit is contained in:
Parker Moore 2013-02-11 21:02:36 +01:00
parent 6864387784
commit 055d85e44e

View File

@ -17,7 +17,7 @@ module Octopress
begin begin
configs = YAML.load(File.open(full_path)) configs = YAML.load(File.open(full_path))
if configs.nil? if configs.nil?
configs Hash.new
else else
configs.to_symbol_keys configs.to_symbol_keys
end end