Skip to content

Commit

Permalink
Merge pull request #199 from gitautoai/wes
Browse files Browse the repository at this point in the history
Improve an error handling to debug this error: update_comment encountered an MissingSchema: Invalid URL 'None': No scheme supplied.
  • Loading branch information
hiroshinishio authored Jul 8, 2024
2 parents 35c044d + ca7514f commit ebf7410
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/gitauto_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion services/github/github_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ebf7410

Please sign in to comment.