Merge lp:~mwhudson/launchpad/dont-oops-sftp-unlink-directory-bug-372506 into lp:launchpad
Proposed by
Michael Hudson-Doyle
Status: | Merged |
---|---|
Approved by: | Michael Hudson-Doyle |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~mwhudson/launchpad/dont-oops-sftp-unlink-directory-bug-372506 |
Merge into: | lp:launchpad |
Diff against target: |
29 lines 2 files modified
lib/lp/codehosting/sftp.py (+1/-0) lib/lp/codehosting/tests/test_sftp.py (+7/-0) |
To merge this branch: | bzr merge lp:~mwhudson/launchpad/dont-oops-sftp-unlink-directory-bug-372506 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | Approve | ||
Review via email: mp+14127@code.launchpad.net |
Commit message
Catch the error raised by transports when you try to delete() a directory to avoid logging an entirely spurious oops.
To post a comment you must log in.
Hi,
This fixes a simple oops bug: delete( 'path/to/ directory' ) on a bzr Transport raises an exception we didn't know how to translate, leading to an oops being logged.
Cheers,
mwh