Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,10 @@ def _run(
)
)
except TimeoutError as e:
return f"Timeout Exception occured in method : get_dataset_data_async. Details - {e!s}"
return f"Timeout Exception occurred in method : get_dataset_data_async. Details - {e!s}"
except BrightDataDatasetToolException as e:
return (
f"Exception occured in method : get_dataset_data_async. Details - {e!s}"
f"Exception occurred in method : get_dataset_data_async. Details - {e!s}"
)
except Exception as e:
return f"Bright Data API error: {e!s}"
12 changes: 6 additions & 6 deletions lib/devtools/src/crewai_devtools/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,15 +1153,15 @@ def _create_tag_and_release(
try:
run_command(["git", "tag", "-a", tag_name, "-m", release_notes])
except subprocess.CalledProcessError as e:
console.print(f"[red]✗[/red] Created tag {tag_name}: {e}")
console.print(f"[red]✗[/red] Failed to create tag {tag_name}: {e}")
sys.exit(1)
console.print(f"[green]✓[/green] Created tag {tag_name}")

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

Expand All @@ -1182,7 +1182,7 @@ def _create_tag_and_release(

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

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

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

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

Expand Down