Re: Error handeling with Try

2011-10-19 Thread Guy Nesher
Thanks On Oct 19, 3:57 pm, "J. Cliff Dyer" wrote: > On 10/19/2011 10:49 AM, Guy Nesher wrote: > > > > > > > > > > > I have an odd problem tracking errors in a for loop > > I assign a loop counter to each error and print them at the end of the > > loop, but all the errors are numbered to the last

Re: Error handeling with Try

2011-10-19 Thread J. Cliff Dyer
On 10/19/2011 10:49 AM, Guy Nesher wrote: I have an odd problem tracking errors in a for loop I assign a loop counter to each error and print them at the end of the loop, but all the errors are numbered to the last iteration. The code goes something like this : error = [0,[]] counter = 0

Error handeling with Try

2011-10-19 Thread Guy Nesher
I have an odd problem tracking errors in a for loop I assign a loop counter to each error and print them at the end of the loop, but all the errors are numbered to the last iteration. The code goes something like this : error = [0,[]] counter = 0 for row in reader: counter +=1 try: #