Re: [Tutor] Trying a csv error

2006-02-10 Thread Tim Johnson
Hi Danny: Thanks! tim (who_should_have_read_the_docs) * Danny Yoo <[EMAIL PROTECTED]> [060210 13:56]: > > I'd like to do the following > > while(1): > > try: > > reader.next() ## csv object method > > except cvs._csv.Error: ## or something like this > > print "bad csv

Re: [Tutor] Trying a csv error

2006-02-10 Thread Danny Yoo
> I'd like to do the following > while(1): > try: > reader.next() ## csv object method > except cvs._csv.Error: ## or something like this > print "bad csv record, skipping " > continue > except StopIteration: > break > > The problem is that python do

[Tutor] Trying a csv error

2006-02-10 Thread Tim Johnson
Hello: I'm using the csv module, and resources are imported as in import csv My exception trapping uses etype, value, tb = sys.exc_info() and I'm getting the following value = "newline inside string" type = "_csv.Error" I would like to proceed with the assumption for now that this error should no