fix a warning & lower memory usage
This commit is contained in:
parent
080d5b4e5d
commit
76d516bd8f
1 changed files with 7 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/ruby -w
|
#!/usr/local/bin/ruby -w
|
||||||
|
|
||||||
# $Dwarf: ripnews.rb,v 1.82 2004/06/16 08:17:48 ward Exp $
|
# $Dwarf: ripnews.rb,v 1.83 2004/06/16 10:49:54 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -567,9 +567,12 @@ def main
|
||||||
if succes == false
|
if succes == false
|
||||||
print " Skipping article...\n"
|
print " Skipping article...\n"
|
||||||
end
|
end
|
||||||
rescue Article::TempError, Article::PermError
|
#rescue Article::TempError, Article::PermError
|
||||||
|
rescue TempError, PermError
|
||||||
print "#{$!}\n"
|
print "#{$!}\n"
|
||||||
print " Skipping article...\n"
|
print " Skipping article...\n"
|
||||||
|
#print "Caught #{$!.class}\n"
|
||||||
|
#print "Error: #{$!}\n"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
@ -578,6 +581,8 @@ def main
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@articles.quit
|
@articles.quit
|
||||||
|
@articles = nil
|
||||||
|
GC.start
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue