lib/vp/pears/vp_theme.rb in vp-themes-0.1.9 vs lib/vp/pears/vp_theme.rb in vp-themes-0.1.10

- old
+ new

@@ -19,10 +19,10 @@ .delete_suffix('.yml') end.zip(THEMES) ].with_indifferent_access.freeze def initialize(name, on_failure: :raise) - file = MAP[name.downcase] + file = MAP[name&.downcase] raise InvalidVpTheme.new(name) unless file.present? super(file, on_failure: on_failure) rescue InvalidVpTheme => e if on_failure == :null