Properly handle 404s in BitBucket API layer.
Review Request #7376 — Created June 4, 2015 and submitted
We weren't translating 404 errors into FileNotFound, which could result in
uncaught exceptions when trying to detect whether files existed.
Ran unit tests. The newly-added test fails without the exception handling with
the reported error, and succeeds after.
- Change Summary:
-
Plumb through path and revision in exception.
- Commit:
-
8ffcb4f893c700138d226ac3a0cb20c5562a8b8441766b040fe52ccb01ab6c3df64fde8f06ee1158
- Diff:
-
Revision 2 (+12 -1)

-
Tool: Pyflakes Processed Files: reviewboard/hostingsvcs/bitbucket.py Tool: PEP8 Style Checker Processed Files: reviewboard/hostingsvcs/bitbucket.py
- Testing Done:
-
~ Ran unit tests.
~ Ran unit tests. The newly-added test fails without the exception handling with
+ the reported error, and succeeds after. - Commit:
-
41766b040fe52ccb01ab6c3df64fde8f06ee1158869e2addbd4ff5e4b20c196050f6b9290251cee7