> > begin > > ciao.each {|line| > > resp, data = h.get(line) > > p line > > } > > > > rescue Net::ProtoFatalError > > print "catched\n" > > end > > As the program is now, it will jump out of the loop to the exception > handler when an exception occurs. You probably want something like this: > > ciao.each {|line| > begin > resp, data = h.get(line) > p line > rescue Net::ProtoFatalError > puts "catched" > end > } it worked. thank you, I was really stumped! ciao, Marco