Merge lp:~mfisch/ubuntu-accomplishments-daemon/ubuntu-accomplishments-daemon-parse-fix into lp:ubuntu-accomplishments-daemon
Proposed by
Matt Fischer
Status: | Merged |
---|---|
Merged at revision: | 117 |
Proposed branch: | lp:~mfisch/ubuntu-accomplishments-daemon/ubuntu-accomplishments-daemon-parse-fix |
Merge into: | lp:ubuntu-accomplishments-daemon |
Diff against target: |
239 lines (+51/-49) 2 files modified
accomplishments/daemon/api.py (+38/-20) accomplishments/daemon/tests/tests.py (+13/-29) |
To merge this branch: | bzr merge lp:~mfisch/ubuntu-accomplishments-daemon/ubuntu-accomplishments-daemon-parse-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Accomplishments Daemon Developers | Pending | ||
Review via email: mp+117307@code.launchpad.net |
Description of the change
Fixes the broken unit tests, which behaved differently depending on whether you had a daemon running on your system. (LP: 1030208
Fixes the daemon crash when there is a parse error in the .accomplishment file. I've modified the unit tests to account for this. You can see where I wrapped the Parse exceptions with a try/except block. Ideally I think we could move large chunks of this piece of code to separate functions.
If you test this, please run the unit tests with and without a daemon running on your system.
To post a comment you must log in.