Merge lp://staging/~elachuni/piston-mini-client/error-codes into lp://staging/piston-mini-client

Proposed by Anthony Lenton
Status: Merged
Merged at revision: 49
Proposed branch: lp://staging/~elachuni/piston-mini-client/error-codes
Merge into: lp://staging/piston-mini-client
Diff against target: 97 lines (+23/-5)
2 files modified
piston_mini_client/failhandlers.py (+19/-5)
piston_mini_client/tests/test_failhandlers.py (+4/-0)
To merge this branch: bzr merge lp://staging/~elachuni/piston-mini-client/error-codes
Reviewer Review Type Date Requested Status
Danny Tamez (community) Approve
software-store-developers Pending
Review via email: mp+93300@code.staging.launchpad.net

Description of the change

As the related bug #932715 points out, the code for deciding which status codes were errors was kind of sucky: it had a (short) list of status codes considered errors.

Instead, this branch considers everything at or above 400 an error, and anything below that a success.

While I was there, I added a couple of status-code-specific exceptions for the MultiExceptionFailHandler class to return.

To post a comment you must log in.
Revision history for this message
Danny Tamez (zematynnad) wrote :

Looks fine and tests all pass.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches