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

Commit

Permalink
Merge pull request #282 from davidcelis/fix-parsing
Browse files Browse the repository at this point in the history
Fix uncaught LoadError requiring pygments.rb
  • Loading branch information
stephencelis committed Apr 8, 2016
2 parents 01ac0ce + 084185a commit 5abbfb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 5abbfb5

Please sign in to comment.