1
0
Fork 0
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:
John Mair 2013-01-19 21:17:52 +01:00
parent 9488494e6b
commit 6c083f12c7

View file

@ -27,7 +27,7 @@ class Pry::Pager
@page_size ||= begin
require 'io/console'
$stdout.winsize.first
rescue
rescue LoadError
27
end
end