From 850ac861d02f6b262ffe8dc61bc7606848d5f6c3 Mon Sep 17 00:00:00 2001 From: Kyrylo Silin Date: Mon, 4 Mar 2019 00:23:45 +0200 Subject: [PATCH] rubocop: fix offences of the Lint/RescueException cop --- .rubocop_todo.yml | 5 ----- lib/pry/color_printer.rb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b4d4df08..365eed85 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -13,11 +13,6 @@ Gemspec/RequiredRubyVersion: Exclude: - 'pry.gemspec' -# Offense count: 1 -Lint/RescueException: - Exclude: - - 'lib/pry/color_printer.rb' - # Offense count: 1 Lint/ReturnInVoidContext: Exclude: diff --git a/lib/pry/color_printer.rb b/lib/pry/color_printer.rb index d59d9b48..cfd93856 100644 --- a/lib/pry/color_printer.rb +++ b/lib/pry/color_printer.rb @@ -43,7 +43,7 @@ class Pry begin str = obj.inspect - rescue Exception + rescue StandardError # Read the class name off of the singleton class to provide a default # inspect. singleton = class << obj; self; end