In this case, it looks like your except thing happens after the loop ends.
(StopIteration).  Replace it with 'pass', and it should work.
Ian

Reply via email to