Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fail silently when trying to load various XML parser

This prevents littering the console with purposeless messages.
  • Loading branch information...
commit 05287a09045302806d7db3c91c8ff59f35bb7fbc 1 parent 9bdd407
@ryanwood ryanwood authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/oembed_links.rb
View
4 lib/oembed_links.rb
@@ -305,7 +305,7 @@ def self.autodetect_xml_formatters(*ignore)
self.register_formatter(OEmbed::Formatters::LibXML)
loaded_lib = true
rescue LoadError
- puts "Error loading LibXML XML formatter"
+ # Silently fail: LibXML XML formatter not found
end
end
unless loaded_lib || ignore.include?("hpricot")
@@ -315,7 +315,7 @@ def self.autodetect_xml_formatters(*ignore)
self.register_formatter(OEmbed::Formatters::HpricotXML)
loaded_lib = true
rescue LoadError
- puts "Error loading Hpricot XML formatter"
+ # Silently fail: Hpricot XML formatter not found
end
end
unless loaded_lib || ignore.include?("rexml")
Please sign in to comment.
Something went wrong with that request. Please try again.