diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2019-03-02 14:13:59 +0200 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2019-03-02 14:13:59 +0200 |
commit | e9cfdc8b45835ff9ac82fbe857aac9fd0c937b84 (patch) | |
tree | cf5146d76d4023ba14cf5059f8ac73a8a8dbfc8e /lib/pry/pry_class.rb | |
parent | ac24bad339e19f576592d98178ce0ae0a1659605 (diff) | |
download | pry-e9cfdc8b45835ff9ac82fbe857aac9fd0c937b84.tar.gz |
rubocop: fix offences of the Style/RescueStandardError cop
Diffstat (limited to 'lib/pry/pry_class.rb')
-rw-r--r-- | lib/pry/pry_class.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb index 2f677885..c08412cb 100644 --- a/lib/pry/pry_class.rb +++ b/lib/pry/pry_class.rb @@ -323,12 +323,12 @@ Readline version #{Readline::VERSION} detected - will not auto_resize! correctly trap :WINCH do begin Readline.set_screen_size(*Terminal.size!) - rescue => e + rescue StandardError => e warn "\nPry.auto_resize!'s Readline.set_screen_size failed: #{e}" end begin Readline.refresh_line - rescue => e + rescue StandardError => e warn "\nPry.auto_resize!'s Readline.refresh_line failed: #{e}" end end |