Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Ignore build status 404 in handle_pull_request_approved
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 12, 2018
1 parent 48be788 commit f0d1959
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions badwolf/webhook/views.py
Expand Up @@ -279,9 +279,10 @@ def handle_pull_request_approved(payload):
status = build_status.get()
if status['state'] == 'SUCCESSFUL':
pull_request.merge(pr_id, message)
except BitbucketAPIError:
except BitbucketAPIError as exc:
logger.exception('Error calling Bitbucket API')
sentry.captureException()
if exc.code != 404:
sentry.captureException()


@register_event_handler('repo:commit_comment_created')
Expand Down

0 comments on commit f0d1959

Please sign in to comment.