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 on import

#263

From GS

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'

Reported by Virgil Dupras · June 1st, 2011 @ 03:00 PM

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

Activity

  1. Virgil Dupras
    Virgil Dupras

    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.

    June 4th, 2011 @ 03:46 PM

  2. Virgil Dupras
    Virgil Dupras
    • 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.

    June 5th, 2011 @ 05:47 PM

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

    June 6th, 2011 @ 02:47 PM

  4. Virgil Dupras
    Virgil Dupras
    • State changed from accepted to fixed

    June 6th, 2011 @ 03:18 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.