OPS-250 Modifying liquid error handling so that it no longer captures Exceptions that are not subclasses of StandardError (previously, it was rescuing things like Interrupt and NoMemoryError).

This commit is contained in:
Austin Mills
2011-01-10 14:55:05 -06:00
parent 0526348cae
commit 4fec29f288
2 changed files with 13 additions and 1 deletions

View File

@@ -92,7 +92,7 @@ module Liquid
list.collect do |token|
begin
token.respond_to?(:render) ? token.render(context) : token
rescue Exception => e
rescue ::StandardError => e
context.handle_error(e)
end
end