mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
pager.rb: Ensure we explicitly rescue LoadError
a bare 'rescue' will not catch a LoadError
This commit is contained in:
parent
9488494e6b
commit
6c083f12c7
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class Pry::Pager
|
|||
@page_size ||= begin
|
||||
require 'io/console'
|
||||
$stdout.winsize.first
|
||||
rescue
|
||||
rescue LoadError
|
||||
27
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue