def run
...
rescue FooError
...
rescue
...
ensure
...
end
How to suppress the ensure block only for FooError?
def run
...
rescue FooError
...
rescue
...
ensure
...
end
How to suppress the ensure block only for FooError?
What about this?
def run
...
rescue FooError
rescued_foo_error = true
...
rescue
...
ensure
unless rescued_foo_error
...
end
end