lib/honeybadger/agent.rb in honeybadger-4.12.2 vs lib/honeybadger/agent.rb in honeybadger-5.0.0.beta1
- old
+ new
@@ -120,9 +120,10 @@
# @return [false] when ignored.
def notify(exception_or_opts, opts = {})
opts = opts.dup
if exception_or_opts.is_a?(Exception)
+ return nil if exception_or_opts.instance_variable_get(:@__hb_handled)
opts[:exception] = exception_or_opts
elsif exception_or_opts.respond_to?(:to_hash)
opts.merge!(exception_or_opts.to_hash)
else
opts[:error_message] = exception_or_opts.to_s