diff --git a/lib/pry.rb b/lib/pry.rb index 372659d6..7671cab2 100644 --- a/lib/pry.rb +++ b/lib/pry.rb @@ -20,7 +20,11 @@ class Pry # The default prints DEFAULT_PRINT = proc do |output, value| - Helpers::BaseHelpers.stagger_output("=> #{Helpers::BaseHelpers.colorize_code(value.pretty_inspect)}", output) + begin + Helpers::BaseHelpers.stagger_output("=> #{Helpers::BaseHelpers.colorize_code(value.pretty_inspect)}", output) + rescue NoMethodError + output.puts "=> unknown" + end end # Will only show the first line of the backtrace