ook de eerste fetch moet bewaakt worden

This commit is contained in:
Ward Wouts 2006-08-10 11:23:08 +00:00
parent 9ba4b75823
commit be13cabfd8

View file

@ -128,6 +128,7 @@ end
for podcast in @podcasts.keys.sort for podcast in @podcasts.keys.sort
files = Array.new files = Array.new
puts podcast puts podcast
begin
res = fetch(@podcasts[podcast]["rss"]) res = fetch(@podcasts[podcast]["rss"])
@filelist = {} @filelist = {}
@ -145,4 +146,8 @@ for podcast in @podcasts.keys.sort
} }
} }
end end
rescue
rescue Timeout::Error, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::ETIMEDOUT, Net::HTTPFatalError
puts " error #{$!} fetching, skipping"
end
end end