Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logger_delete: map gRPC 'NOT_FOUND' error onto our 'NotFound' exception. #2094

Merged
merged 1 commit into from
Aug 11, 2016
Merged

logger_delete: map gRPC 'NOT_FOUND' error onto our 'NotFound' exception. #2094

merged 1 commit into from
Aug 11, 2016

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Aug 11, 2016

Fixes #2091.

@tseaver tseaver added the api: logging Issues related to the Cloud Logging API. label Aug 11, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 11, 2016
self._gax_api.delete_log(path, options)
except GaxError as exc:
if exc_to_code(exc.cause) == StatusCode.NOT_FOUND:
raise NotFound(path)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Aug 11, 2016

LGTM

@tseaver tseaver merged commit a5bb176 into googleapis:master Aug 11, 2016
@tseaver tseaver deleted the 2091-logging-gax-logger-delete-raise-not-found branch August 11, 2016 21:08
@dhermes dhermes mentioned this pull request Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the Cloud Logging API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants