diff --git a/services/gitauto_handler.py b/services/gitauto_handler.py index a8bf6211..54f89aee 100644 --- a/services/gitauto_handler.py +++ b/services/gitauto_handler.py @@ -104,7 +104,7 @@ async def handle_gitauto(payload: GitHubLabeledPayload, trigger_type: str) -> No token=token, ) - comment_url = create_comment( + comment_url: str = create_comment( owner=owner, repo=repo_name, issue_number=issue_number, diff --git a/services/github/github_manager.py b/services/github/github_manager.py index a8df1873..2502a0a6 100644 --- a/services/github/github_manager.py +++ b/services/github/github_manager.py @@ -162,7 +162,7 @@ def commit_changes_to_remote_branch( put_response.raise_for_status() -@handle_exceptions(default_return_value=None, raise_on_error=False) +@handle_exceptions(raise_on_error=True) def create_comment( owner: str, repo: str, issue_number: int, body: str, token: str ) -> str: