lib/nanoc/helpers/rendering.rb in nanoc-4.6.1 vs lib/nanoc/helpers/rendering.rb in nanoc-4.6.2
- old
+ new
@@ -39,11 +39,10 @@
# Get filter name
filter_name, filter_args = *@config._context.compilation_context.filter_name_and_args_for_layout(layout)
raise Nanoc::Int::Errors::CannotDetermineFilter.new(layout.identifier) if filter_name.nil?
# Get filter class
- filter_class = Nanoc::Filter.named(filter_name)
- raise Nanoc::Int::Errors::UnknownFilter.new(filter_name) if filter_class.nil?
+ filter_class = Nanoc::Filter.named!(filter_name)
# Create filter
filter = filter_class.new(assigns)
# Layout