diff --git a/lib/pry/commands.rb b/lib/pry/commands.rb index bf927164..3fd45861 100644 --- a/lib/pry/commands.rb +++ b/lib/pry/commands.rb @@ -557,7 +557,7 @@ e.g: show-method hello_method # Try to find source for C methods using MethodInfo (if possible) if Pry.has_pry_doc && meth.source_location.nil? info = Pry::MethodInfo.info_for(meth) - if !info + if !info || !info.source output.puts "Cannot find source for C method: #{meth_name}" next end diff --git a/lib/pry/version.rb b/lib/pry/version.rb index aa11f3c3..cbc759c2 100644 --- a/lib/pry/version.rb +++ b/lib/pry/version.rb @@ -1,3 +1,3 @@ class Pry - VERSION = "0.7.0" + VERSION = "0.7.1" end