Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Fix uncaught LoadError requiring pygments.rb #282

Merged
merged 1 commit into from
Apr 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ghi
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ module GHI
raise unless supports_256_colors?
require 'pygments'
Pygmentizer.new
rescue
rescue StandardError, LoadError
FakePygmentizer.new
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ghi/formatting/colors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def highlighter
raise unless supports_256_colors?
require 'pygments'
Pygmentizer.new
rescue
rescue StandardError, LoadError
FakePygmentizer.new
end
end
Expand Down