Skip to content

Commit

Permalink
fix: _append_tool_name list index out of range (#3914)
Browse files Browse the repository at this point in the history
* fix: _append_tool_name list index out of range

* chore: update release-please config to release from v1 branch

PiperOrigin-RevId: 641271724

---------

Co-authored-by: Nicolò Boschi <boschi1997@gmail.com>
  • Loading branch information
sasha-gitg and nicoloboschi committed Jun 7, 2024
1 parent 15d963d commit 323c2f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ manifest: true
# NOTE: this section is generated by synthtool.languages.python
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py
branches:
- branch: v1.54
handleGHRelease: true
releaseType: python
- branch: v0
handleGHRelease: true
releaseType: python
2 changes: 1 addition & 1 deletion google/cloud/aiplatform/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def tool_context_manager(tool_name: str) -> None:


def _append_tool_name(tool_name: str) -> None:
if _tool_names_to_append[-1] != tool_name:
if not _tool_names_to_append or _tool_names_to_append[-1] != tool_name:
_tool_names_to_append.append(tool_name)


Expand Down

0 comments on commit 323c2f5

Please sign in to comment.