parse_amount crash on import
Reported by Virgil Dupras | January 13th, 2011 @ 10:15 AM
Application Identifier: com.hardcoded_software.moneyguru
Application Version: 2.3.4
Traceback (most recent call last):
File "core/model/amount.pyc", line 106, in parse_amount
ValueError: could not convert string to float: Carlisle
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/moneyGuru.app/Contents/Resources/mg_cocoa.plugin/Contents/Resources/mg_cocoa.py", line 1291, in continueImport
File "core/gui/csv_options.pyc", line 135, in continue_import
File "core/document.pyc", line 742, in load_parsed_file_for_import
File "core/loader/base.pyc", line 273, in load
File "core/loader/base.pyc", line 191, in parse_amount
File "core/model/amount.pyc", line 111, in parse_amount
ValueError: 'Carlisle' is not an amount
How the heck was this value not detected as a non-amount before
continue_import()
?
Comments and changes to this ticket
-
Virgil Dupras February 3rd, 2011 @ 01:00 PM
- State changed from new to accepted
Ok, now I'm confused. To reproduce the error, one must simple import a CSV and choose a non-amount column for the "Amount" column. I was sure that the csv options dialog took care of verifying that the Amount column actually contained amounts. Strange...
-
Virgil Dupras February 5th, 2011 @ 11:43 AM
- State changed from accepted to fixed
(from [af735a68f4b4]) [#220 state:fixed] Don't crash when selecting a non-amount column in a CSV. https://bitbucket.org/hsoft/moneyguru/changeset/af735a68f4b4/
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
Tags
Referenced by
- 220 parse_amount crash on import (from [af735a68f4b4]) [#220 state:fixed] Don't crash when...