ook de eerste fetch moet bewaakt worden
This commit is contained in:
parent
9ba4b75823
commit
be13cabfd8
1 changed files with 20 additions and 15 deletions
|
|
@ -128,6 +128,7 @@ end
|
|||
for podcast in @podcasts.keys.sort
|
||||
files = Array.new
|
||||
puts podcast
|
||||
begin
|
||||
res = fetch(@podcasts[podcast]["rss"])
|
||||
@filelist = {}
|
||||
|
||||
|
|
@ -145,4 +146,8 @@ for podcast in @podcasts.keys.sort
|
|||
}
|
||||
}
|
||||
end
|
||||
rescue
|
||||
rescue Timeout::Error, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::ETIMEDOUT, Net::HTTPFatalError
|
||||
puts " error #{$!} fetching, skipping"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue