Skip to content

Commit 2cc890f

Browse files
yujclaude
authored andcommitted
fix: correct typos and misleading error messages
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2f48937 commit 2cc890f

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/crewai-tools/src/crewai_tools/tools/brightdata_tool/brightdata_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,10 @@ def _run(
593593
)
594594
)
595595
except TimeoutError as e:
596-
return f"Timeout Exception occured in method : get_dataset_data_async. Details - {e!s}"
596+
return f"Timeout Exception occurred in method : get_dataset_data_async. Details - {e!s}"
597597
except BrightDataDatasetToolException as e:
598598
return (
599-
f"Exception occured in method : get_dataset_data_async. Details - {e!s}"
599+
f"Exception occurred in method : get_dataset_data_async. Details - {e!s}"
600600
)
601601
except Exception as e:
602602
return f"Bright Data API error: {e!s}"

lib/devtools/src/crewai_devtools/cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,15 +1042,15 @@ def _create_tag_and_release(
10421042
try:
10431043
run_command(["git", "tag", "-a", tag_name, "-m", release_notes])
10441044
except subprocess.CalledProcessError as e:
1045-
console.print(f"[red]✗[/red] Created tag {tag_name}: {e}")
1045+
console.print(f"[red]✗[/red] Failed to create tag {tag_name}: {e}")
10461046
sys.exit(1)
10471047
console.print(f"[green]✓[/green] Created tag {tag_name}")
10481048

10491049
with console.status(f"[cyan]Pushing tag {tag_name}..."):
10501050
try:
10511051
run_command(["git", "push", "origin", tag_name])
10521052
except subprocess.CalledProcessError as e:
1053-
console.print(f"[red]✗[/red] Pushed tag {tag_name}: {e}")
1053+
console.print(f"[red]✗[/red] Failed to push tag {tag_name}: {e}")
10541054
sys.exit(1)
10551055
console.print(f"[green]✓[/green] Pushed tag {tag_name}")
10561056

@@ -1071,7 +1071,7 @@ def _create_tag_and_release(
10711071

10721072
run_command(gh_cmd)
10731073
except subprocess.CalledProcessError as e:
1074-
console.print(f"[red]✗[/red] Created GitHub Release: {e}")
1074+
console.print(f"[red]✗[/red] Failed to create GitHub Release: {e}")
10751075
sys.exit(1)
10761076

10771077
release_type = "prerelease" if is_prerelease else "release"
@@ -1524,7 +1524,7 @@ def _trigger_pypi_publish(tag_name: str, wait: bool = False) -> None:
15241524
]
15251525
)
15261526
except subprocess.CalledProcessError as e:
1527-
console.print(f"[red]✗[/red] Triggered PyPI publish workflow: {e}")
1527+
console.print(f"[red]✗[/red] Failed to trigger PyPI publish workflow: {e}")
15281528
sys.exit(1)
15291529
console.print("[green]✓[/green] Triggered PyPI publish workflow")
15301530

@@ -1753,15 +1753,15 @@ def tag(dry_run: bool, no_edit: bool) -> None:
17531753
try:
17541754
run_command(["git", "checkout", "main"])
17551755
except subprocess.CalledProcessError as e:
1756-
console.print(f"[red]✗[/red] Checked out main branch: {e}")
1756+
console.print(f"[red]✗[/red] Failed to check out main branch: {e}")
17571757
sys.exit(1)
17581758
console.print("[green]✓[/green] On main branch")
17591759

17601760
with console.status("[cyan]Pulling latest changes..."):
17611761
try:
17621762
run_command(["git", "pull"])
17631763
except subprocess.CalledProcessError as e:
1764-
console.print(f"[red]✗[/red] Pulled latest changes: {e}")
1764+
console.print(f"[red]✗[/red] Failed to pull latest changes: {e}")
17651765
sys.exit(1)
17661766
console.print("[green]✓[/green] main branch up to date")
17671767

0 commit comments

Comments
 (0)