disable error report

I have some function

def func()
   val = 0 / 0
end

func()

....
some code
.......

Rescue it.

val = 0 / 0 rescue 0

or

val = 0 / 0 rescue nil