Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Crash during CSV import

#125
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

Reported by Virgil Dupras · January 26th, 2010 @ 06:12 PM

State: fixed
Milestone: none
Assigned to: Virgil Dupras Virgil Dupras

Activity

  1. Virgil Dupras
    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...

    January 27th, 2010 @ 12:16 PM

  2. Virgil Dupras
    Virgil Dupras
    • Assigned user set to Virgil Dupras

    January 27th, 2010 @ 12:20 PM

  3. 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/

    January 27th, 2010 @ 12:37 PM

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.