Kai,

This depends on what you mean by retries...

Here's a quick solution:
foreach url urllist [
   either error? error: try [ content: read url ] [
     ; register which url and schedule for retry
     ; maybe print mold disarm error to see why 'read 
failed?
   ] [
     counter: counter + 1
     write to-file append copy "file" counter content
   ]
]


HY

Dixit Kai Peters <[EMAIL PROTECTED]> (Thu, 28 Apr 2005 
12:06:20 -0700):

>
>Hi list ~
>
>how can I employ some error handling so that I get 
>retries if a get in the=
> loop 
>should fail?
>
>As always, thanks in advance,
>Kai
>
>foreach url urllist [
>  counter: counter + 1
>  write to-file append copy "file" counter read url
>]
>
>
>-- 
>To unsubscribe from the list, just send an email to 
>lists at rebol.com with unsubscribe as the subject.
>

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to