Crash during CSV import
-
Virgil Dupras
- State changed from new to accepted
This error is rather strange because when no delimiter is found, a csv.Error is supposed to be raised, which then raises a FileFormatError. I have checked it out, and I can confirm that Sniffer().sniff() always returns a dialect with a delimiter. If it can't, it raises csv.Error.
Well, lots of fun ahead...
-
Virgil Dupras
- Assigned user set to Virgil Dupras
-
Virgil Dupras
- State changed from accepted to fixed
(from [30e2f95a2e73]) [#125 Crash during CSV import state:fixed] Wrapped the csv.reader() call in a try..except to catch and log a weird error. Also, I realized that csv.reader() isn't wanting a file object, but a line iterator. That allows to simplify the code a little bit. http://bitbucket.org/hsoft/moneyguru/changeset/30e2f95a2e73/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.