[DRE-commits] [ruby-org] 191/303: Stop catching RubyPython error from pygments
Jérémy Bobbio
lunar at alioth.debian.org
Fri Aug 9 17:33:55 UTC 2013
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository ruby-org.
commit 18bba9c1cc7216d22715ab65d3a32f1503071787
Author: Waldemar Quevedo <waldemar.quevedo at gmail.com>
Date: Sat Oct 6 22:32:05 2012 +0900
Stop catching RubyPython error from pygments
---
lib/org-ruby/html_output_buffer.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/org-ruby/html_output_buffer.rb b/lib/org-ruby/html_output_buffer.rb
index b565b1f..cbcfdac 100644
--- a/lib/org-ruby/html_output_buffer.rb
+++ b/lib/org-ruby/html_output_buffer.rb
@@ -116,7 +116,7 @@ module Orgmode
if defined? Pygments
begin
@buffer = Pygments.highlight(@buffer, :lexer => lang)
- rescue ::RubyPython::PythonError
+ rescue
# Not supported lexer from Pygments, we fallback on using the text lexer
@buffer = Pygments.highlight(@buffer, :lexer => 'text')
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-org.git
More information about the Pkg-ruby-extras-commits
mailing list