wxbanker crashed with TypeError in GetBalance()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wxBanker |
Fix Released
|
Low
|
David D Lowe |
Bug Description
I had just created an empty account before restarting wxBanker.
$ sqlite3 /home/david/
1|Censored|
2|Censored|
3|Censored|
4|Test|0|120.0|
5|\\|0||
As you can see, for some reason the last account doesn't have a balance saved, not even 0.
Traceback should be included as an attachment.
ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: wxbanker 0.8.1~ppa1~10.10
ProcVersionSign
Uname: Linux 2.6.35-
Architecture: i386
CrashDB: wxbanker
Date: Sat Oct 2 19:34:57 2010
ExecutablePath: /usr/bin/wxbanker
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
InterpreterPath: /usr/bin/python2.6
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/wxbanker
ProcEnviron:
SHELL=/bin/bash
LANG=en_GB.utf8
PythonArgs: ['/usr/
SourcePackage: wxbanker
ThirdParty: True
Title: wxbanker crashed with TypeError in GetBalance()
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Related branches
- Michael Rooney: Approve
-
Diff: 55 lines (+19/-3)2 files modifiedwxbanker/bankobjects/account.py (+4/-3)
wxbanker/tests/modeltests.py (+15/-0)
Changed in wxbanker: | |
status: | New → In Progress |
assignee: | nobody → David D Lowe (flimm) |
Changed in wxbanker: | |
status: | In Progress → Fix Committed |
importance: | Undecided → Low |
milestone: | none → 0.9 |
Changed in wxbanker: | |
status: | Fix Committed → Fix Released |
That's very weird! Can you think of anything odd that happened, or you just created an account, restarted wxBanker, and this occurred? The merge proposal might fix it but seems like a work-around for the actual issue which is that something is passing in None as the balance somehow.
I'm confused as to how that row column could not have an entry, 'balance' is 'not null default 0.0' so it shouldn't be possible to be null. You weren't querying or manipulating the database in any other way, by chance?