Merge lp:~benji/lazr.restful/bug-854695 into lp:lazr.restful
Proposed by
Benji York
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Benji York | ||||
Approved revision: | 196 | ||||
Merged at revision: | 196 | ||||
Proposed branch: | lp:~benji/lazr.restful/bug-854695 | ||||
Merge into: | lp:lazr.restful | ||||
Diff against target: |
110 lines (+33/-11) 2 files modified
src/lazr/restful/_resource.py (+3/-1) src/lazr/restful/tests/test_error.py (+30/-10) |
||||
To merge this branch: | bzr merge lp:~benji/lazr.restful/bug-854695 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+76230@code.launchpad.net |
Description of the change
Bug 854695 describes several OOPS scenarios caused by lazr.restful
requiring an __traceback__ attribute on exceptions when
LaunchpadTimeou
The fix was to extract the traceback and other bits using sys.exc_info()
instead (as well as adding a test that demonstrated the problem).
To post a comment you must log in.
Hi Benji,
Nice branch, one really minor nitpick:
97 + self.fail('The resource should not have generated an '
98 + 'AttributeError. This is probably because something was '
99 + 'expecting the exception to have a __traceback__ attribute.')
should be formatted as:
(It also has a double-space in there before the "This" that it doesn't need).