New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in csv_options.selected_target_index #107

Closed
hsoft opened this Issue Jun 22, 2013 · 2 comments

Comments

Projects
None yet
1 participant
@hsoft
Owner

hsoft commented Jun 22, 2013

@@@
Application Identifier: com.hardcoded_software.moneyguru
Application Version: 1.6.10

Traceback (most recent call last):
File "/Applications/moneyGuru.app/Contents/Resources/mg_cocoa.plugin/Contents/Resources/mg_cocoa.py", line 1328, in selectedTargetIndex
File "moneyguru/gui/csv_options.pyc", line 219, in selected_target_index
TypeError: 'NoneType' object is not iterable
@@@

The line is index, _ = first((i, t) for i, t in enumerate(self._target_accounts) if t.name == target_name). I have yet to reproduce this, but the only way this can happen I think is to have a target account set in a layout, delete that account (or rename it maybe?) and then select that layout again.

@hsoft hsoft closed this Jun 22, 2013

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

I could reproduce the bug:

  1. Have a CSV layout that targets some account.
  2. Rename the account targeted by the csv layout
  3. Import a csv.
  4. Select that layout that targets the renamed account... crash.
@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

(from [f989303ab456]) [#107 state:fixed] Fixed crash during csv imports when an account targeted by a csv layout had been renamed or removed.
http://bitbucket.org/hsoft/moneyguru/changeset/f989303ab456/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment