lib/term_extraction/yahoo.rb in alexrabarts-term_extraction-0.1.3 vs lib/term_extraction/yahoo.rb in alexrabarts-term_extraction-0.1.4

- old
+ new

@@ -41,9 +41,14 @@ def gateway 'http://search.yahooapis.com/ContentAnalysisService/V1/termExtraction' end def remote_xml - open(uri).read + begin + open(uri).read + rescue => e + $stderr.puts "Couldn't fetch from API: #{e.message}" if $VERBOSE + nil + end end end end \ No newline at end of file