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 on re-opening panes on document load #244

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

Comments

Projects
None yet
1 participant
@hsoft
Owner

hsoft commented Jun 22, 2013

@@@
This has happened twice. I know I've saved the file and re-opened and then this happens:

Application Name: moneyGuru
Version: 2.3.6

Traceback (most recent call last):
File "qt\controller\document.py", line 86, in openDocument
File "qt\controller\document.py", line 75, in open
File "core\document.py", line 707, in load_from_xml
File "core\document.py", line 231, in _restore_preferences_after_load
File "hscommon\notify.py", line 19, in notify
File "hscommon\notify.py", line 67, in dispatch
File "hscommon\notify.py", line 52, in dispatch
File "core\gui\main_window.py", line 482, in document_restoring_preferences
File "core\gui\main_window.py", line 128, in _restore_opened_panes
File "core\model\account.py", line 123, in find
AttributeError: 'int' object has no attribute 'lower'
@@@

My guess would be that an opened account has an entirely numerical name and that Qt's pref reading automatically gives an int instead of a string. Weak...

@hsoft hsoft closed this Jun 22, 2013

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

Yup, precisely that:

  1. New document
  2. Create account "123".
  3. Open it in a tab.
  4. Save and exit.
  5. Relaunch moneyGuru: crash.
@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

(from [9615bb3f4c29]) [#244 state:fixed] Fixed crash on re-opening account tabs with numeric data.
https://bitbucket.org/hsoft/moneyguru/changeset/9615bb3f4c29/

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