Hi<br><br>I have a program that downloads webpages. The webpages are stored in a list and i make each has it's own thread that downloads it. Sometimes the threads exit (because urlopen() throws an exception) Now the question is how can i recover from this thread failing
<br><br><br>Example Code<br>from urllib import urlopen<br>import threading<br><br>threaded_object = []<br>urls= [url1,url2....]<br>for i in urls:<br> do_thread = threading.Thread(target=urlopen,args=(url,))<br> threaded_object.append(do_thread)
<br> for i in threaded_object:<br> i.start()<br> for i in threaded_object:<br> i.join()<br> <br>Thanks<br>James<br><br><br clear="all"><br>-- <br><a href="http://www.goldwatches.com/">http://www.goldwatches.com/
</a><br><a href="http://www.jewelerslounge.com">http://www.jewelerslounge.com</a>