mirror of
https://github.com/kemko/liquid.git
synced 2026-01-07 10:45:42 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user