From d2b51cd188ab3377c98bbedcd236b1d3088c076d Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Wed, 11 May 2005 11:11:04 +0000 Subject: [PATCH] catch YencError --- trunk/ripnews/ripnews.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/ripnews/ripnews.rb b/trunk/ripnews/ripnews.rb index 4c69a46..b1b1ae7 100755 --- a/trunk/ripnews/ripnews.rb +++ b/trunk/ripnews/ripnews.rb @@ -1,6 +1,6 @@ #!/usr/local/bin/ruby -w -# $Dwarf: ripnews.rb,v 1.103 2005/03/01 19:56:56 ward Exp $ +# $Dwarf: ripnews.rb,v 1.104 2005/05/10 20:52:03 ward Exp $ # $Source$ # @@ -667,7 +667,7 @@ def main elsif @articles.group_is_multipart(i) get_multi(i, group) end - rescue TempError, PermError + rescue TempError, PermError, YencError print "#{$!}\n" print " Skipping article...\n" #print "Caught #{$!.class}\n" @@ -679,7 +679,7 @@ def main # if Mark Remaining Read is set do so elsif @config[group].has_key?("-MRR") and @config[group]["-MRR"] and !(@config[group].has_key?("-X") and i =~ /#{@config[group]["-X"]}/) - print "Marking remaining '#{i}' as read\n" + #print "Marking remaining '#{i}' as read\n" @articles.group_update_newsrc(i) end end @@ -689,7 +689,7 @@ def main @articles.disconnect puts "Waiting for decode threads..." ThreadsWait.all_waits(@decode_threads){ |t| - p "Thread #{t} has terminated" + puts "Thread #{t} has terminated" } puts "Decode threads all done" end