Skip to content

Commit

Permalink
Use successful result for permission problems
Browse files Browse the repository at this point in the history
It's not an error and we don't want to have it in the sentry.

Signed-off-by: Frantisek Lachman <flachman@redhat.com>
  • Loading branch information
lachmanfrantisek committed Mar 12, 2020
1 parent 3589947 commit 7b6e7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packit_service/worker/handlers/github_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def run(self) -> HandlerResults:
state=CommitStatus.failure,
)
return HandlerResults(
success=False, details={"msg": PERMISSIONS_ERROR_WRITE_OR_ADMIN}
success=True, details={"msg": PERMISSIONS_ERROR_WRITE_OR_ADMIN}
)
return super().run()

Expand Down Expand Up @@ -523,7 +523,7 @@ def run(self) -> HandlerResults:
state=CommitStatus.failure,
)
return HandlerResults(
success=False, details={"msg": PERMISSIONS_ERROR_WRITE_OR_ADMIN}
success=True, details={"msg": PERMISSIONS_ERROR_WRITE_OR_ADMIN}
)
return super().run()

Expand Down

0 comments on commit 7b6e7c7

Please sign in to comment.