summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/source/http.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/source/http.rb b/lib/oxidized/source/http.rb
index 48ee8a4..7186f98 100644
--- a/lib/oxidized/source/http.rb
+++ b/lib/oxidized/source/http.rb
@@ -69,8 +69,8 @@ if RUBY_VERSION < '2.3'
value
elsif value.respond_to?(:dig)
value.dig(*rest)
- else
- fail TypeError, "#{value.class} does not have #dig method"
+ else # foo.bar.baz (bar exist but is not hash)
+ return nil
end
end
end