lib/pwn/plugins/monkey_patch.rb in pwn-0.5.68 vs lib/pwn/plugins/monkey_patch.rb in pwn-0.5.69
- old
+ new
@@ -49,11 +49,11 @@
line.empty? || @eval_string.empty?
)
# @eval_string += "#{line.chomp}\n" if !line.empty? || !@eval_string.empty?
@eval_string += "#{line.chomp}\n"
end
- rescue RescuableException => e
+ rescue Pry::RescuableException => e
self.last_exception = e
result = e
Pry.critical_section do
show_result(result)
@@ -103,14 +103,14 @@
result = evaluate_ruby(eval_string) unless config.pwn_ai ||
config.pwn_asm
result = eval_string if config.pwn_ai ||
config.pwn_asm
- rescue RescuableException, *jruby_exceptions => e
+ rescue Pry::RescuableException, *jruby_exceptions => e
# Eliminate following warning:
# warning: singleton on non-persistent Java type X
# (http://wiki.jruby.org/Persistence)
- e.class.__persistent__ = true if Helpers::Platform.jruby? && e.class.respond_to?('__persistent__')
+ e.class.__persistent__ = true if Pry::Helpers::Platform.jruby? && e.class.respond_to?('__persistent__')
self.last_exception = e
result = e
end
Pry.critical_section do