Skip to content

Commit 2426bb7

Browse files
committed
chore: add a string wrapper to ensure stdout is comparing properly
1 parent d657da3 commit 2426bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update-demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _create_demo_pr(demo_path: Path, branch: str, commit_start: str) -> None:
150150
search_results: subprocess.CompletedProcess = gh("pr", "list", "--state", "open", "--search", branch)
151151
typer.secho(f"_create_demo_pr - {search_results.stdout}")
152152

153-
if "no pull requests" not in search_results.stdout:
153+
if "no pull requests" not in str(search_results.stdout):
154154
url: str = _get_pr_url(branch=branch)
155155
typer.secho(f"Skipping PR creation due to existing PR found for branch {branch} at {url}")
156156
return

0 commit comments

Comments
 (0)