diff --git a/ghi b/ghi index 6016748..b5f49bb 100755 --- a/ghi +++ b/ghi @@ -487,7 +487,7 @@ module GHI raise unless supports_256_colors? require 'pygments' Pygmentizer.new - rescue + rescue StandardError, LoadError FakePygmentizer.new end end diff --git a/lib/ghi/formatting/colors.rb b/lib/ghi/formatting/colors.rb index dcfc976..02531eb 100644 --- a/lib/ghi/formatting/colors.rb +++ b/lib/ghi/formatting/colors.rb @@ -309,7 +309,7 @@ def highlighter raise unless supports_256_colors? require 'pygments' Pygmentizer.new - rescue + rescue StandardError, LoadError FakePygmentizer.new end end