From 6a70c7a3fd0f9b0e437c3a3fe41c7da727050f88 Mon Sep 17 00:00:00 2001 From: John Mair Date: Tue, 26 Jul 2011 01:06:57 +1200 Subject: [PATCH] added exotic object support back in (fixed regression) --- lib/pry.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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