lib/prss/watcher.rb in prss-0.2.2 vs lib/prss/watcher.rb in prss-0.2.3

- old
+ new

@@ -5,10 +5,15 @@ end def start(interval, output) loop = Thread.new do loop do - @feed.download_to(output) + begin + @feed.download_to(output) + rescue PRSS::Links::InvalidXMLError + warn 'ignoring invalid xml' + end + sleep(interval) end end Kernel.trap( "INT" ) { loop.exit }