Lars> That's not the problem; the problem is the line that reads Lars> raise Yeah, that does look a bit suspect. :-( I'm not sure what I was thinking when I wrote that. Probably I typed r-a-i-s-e then got called for dinner or something. Try changing it to raise ValueError, "invalid csv line: %s" % repr(line) Skip