]> git.cworth.org Git - sup/blobdiff - lib/sup/poll.rb
Merge commit 'origin/various-mbox-fixes'
[sup] / lib / sup / poll.rb
index 5cd1043f6b7859d5feb5ae1332d5d0ba0f39f6f3..fb4abb2526771422579020407bb0ba671391485a 100644 (file)
@@ -86,7 +86,7 @@ EOS
       Index.usual_sources.each do |source|
 #        yield "source #{source} is done? #{source.done?} (cur_offset #{source.cur_offset} >= #{source.end_offset})"
         begin
-          yield "Loading from #{source}... " unless source.done? || source.has_errors?
+          yield "Loading from #{source}... " unless source.done? || (source.respond_to?(:has_errors?) && source.has_errors?)
         rescue SourceError => e
           Redwood::log "problem getting messages from #{source}: #{e.message}"
           Redwood::report_broken_sources :force_to_top => true