Crash during CSV import
Reported by Virgil Dupras | January 26th, 2010 @ 06:12 PM
Application Identifier: com.hardcoded_software.moneyguru
Application Version: 1.7.4
Traceback (most recent call last):
File "/Volumes/moneyGuru/moneyGuru.app/Contents/Resources/mg_cocoa.plugin/Contents/Resources/mg_cocoa.py", line 259, in import_
File "core/document.pyc", line 973, in parse_file_for_import
File "core/loader/base.pyc", line 162, in parse
File "core/loader/csv.pyc", line 74, in _parse
File "core/loader/csv.pyc", line 63, in _scan_lines
TypeError: delimiter must be set
Comments and changes to this ticket
-
Virgil Dupras January 27th, 2010 @ 12:16 PM
- 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 January 27th, 2010 @ 12:20 PM
- Assigned user set to Virgil Dupras
-
Virgil Dupras January 27th, 2010 @ 12:37 PM
- State changed from accepted to fixed
(from [30e2f95a2e73]) [#125 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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Referenced by
- 125 Crash during CSV import (from [30e2f95a2e73]) [#125 state:fixed] Wrapped the csv....