Merge lp:~thumper/launchpad/fix-vocab-oops into lp:launchpad
Proposed by
Tim Penhey
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Tim Penhey | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~thumper/launchpad/fix-vocab-oops | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
90 lines 3 files modified
lib/lp/code/model/branchlookup.py (+8/-2) lib/lp/code/model/tests/test_branchcollection.py (+36/-0) lib/lp/code/model/tests/test_branchlookup.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~thumper/launchpad/fix-vocab-oops | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hudson-Doyle | Approve | ||
Review via email: mp+14065@code.launchpad.net |
Commit message
Catch the extra exceptions that getByLPPath can raise.
To post a comment you must log in.
= Summary =
Don't oops if the user types something stupid into the search field.
== Proposed fix ==
Fix the branch collection search method.
== Implementation details ==
BranchLookup. getByUrl raises many different exceptions, we should catch them.
== Tests ==
test_branchcoll ection. TestSearch
== Demo and Q/A ==
try to link a branch by typing in an incomplete lp: url.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: code/model/ branchcollectio n.py code/model/ tests/test_ branchcollectio n.py
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ code/model/ branchcollectio n.py llection. _getExactMatch] Catch "Exception"
294: [W0703, GenericBranchCo
Yes, I know.