Crash on import
Reported by Virgil Dupras | June 1st, 2011 @ 03:00 PM
I tried to import my latest credit card and rather than seeing the transaction as usual I had an empty screen. Then I decided to swap the description/payee as I have to do it and got the following crash
Application Name: moneyGuru
Version: 2.3.7
Traceback (most recent call last):
File "/usr/local/share/moneyguru/qt/controller/import_/window.py", line 59, in swapClicked
self.model.perform_swap(applyToAll)
File "/usr/local/share/moneyguru/core/gui/import_window.py", line 234, in perform_swap
self._swap_description_payee(apply_to_all=apply_to_all)
File "/usr/local/share/moneyguru/core/gui/import_window.py", line 177, in _swap_description_payee
self._swap_fields(panes, switch_func)
File "/usr/local/share/moneyguru/core/gui/import_window.py", line 180, in _swap_fields
entries = flatten(p.account.entries for p in panes)
File "/usr/local/share/moneyguru/hscommon/util.py", line 60, in flatten
for iterable in iterables:
File "/usr/local/share/moneyguru/core/gui/import_window.py", line 180, in
entries = flatten(p.account.entries for p in panes)
AttributeError: 'NoneType' object has no attribute 'account'
and when I selected the account I got this
Application Name: moneyGuru
Version: 2.3.7
Traceback (most recent call last):
File "/usr/local/share/moneyguru/qt/controller/import_/window.py", line 70, in targetAccountChanged
self.model.selected_target_account_index = index
File "/usr/local/share/moneyguru/core/gui/import_window.py", line 286, in selected_target_account_index
self.selected_pane.selected_target = target
AttributeError: 'NoneType' object has no attribute 'selected_target'
Comments and changes to this ticket
-
Virgil Dupras June 4th, 2011 @ 03:46 PM
The key to reproducing this bug is to obtain an empty import panel, which is supposed to be impossible. I'm asking additional info to the user.
-
Virgil Dupras June 5th, 2011 @ 05:47 PM
- State changed from new to accepted
I finally reproduced it. I created a QIF file with 2 empty account records, with one of them having a "D" line with a valid date (so that the _parse() phase think it's a valid file). Then we end up with an empty import window popping up.
-
Virgil Dupras June 6th, 2011 @ 02:47 PM
- Assigned user set to Virgil Dupras
-
Virgil Dupras June 6th, 2011 @ 03:18 PM
- State changed from accepted to fixed
(from [264a224bdab8]) [#263 state:fixed] Properly detect empty QIF files. https://bitbucket.org/hsoft/moneyguru/changeset/264a224bdab8/
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
- 263 Crash on import (from [264a224bdab8]) [#263 state:fixed] Properly detect ...