Merge lp:~thomir-deactivatedaccount/autopilot/catch-stateerror-printtree into lp:autopilot
Proposed by
Thomi Richards
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Christopher Lee | ||||
Approved revision: | 446 | ||||
Merged at revision: | 472 | ||||
Proposed branch: | lp:~thomir-deactivatedaccount/autopilot/catch-stateerror-printtree | ||||
Merge into: | lp:autopilot | ||||
Diff against target: |
75 lines (+30/-7) 3 files modified
autopilot/introspection/dbus.py (+9/-6) autopilot/introspection/types.py (+1/-1) autopilot/tests/unit/test_introspection_features.py (+20/-0) |
||||
To merge this branch: | bzr merge lp:~thomir-deactivatedaccount/autopilot/catch-stateerror-printtree | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Needs Fixing | |
Christopher Lee (community) | Approve | ||
Thomi Richards (community) | Abstain | ||
Chris Gagnon | Pending | ||
Max Brustkern | Pending | ||
Nicholas Skaggs | Pending | ||
Review via email: mp+214632@code.launchpad.net |
Commit message
Don't abort print_tree when we catch the StateNotFoundError exception.
Description of the change
Dumping the object tree with print_tree often fails to complete due to StateNotFound errors. This modifies the print call to catch these errors and continue to print the largest possible tree. Other errors could be considered as well to try and print as complete a dump as possible.
To post a comment you must log in.
LGTM, but since this is now some of my code, I'm abstaining.