Update cli/utils.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
b0754b3e39
commit
6d3b19d705
10
cli/utils.py
10
cli/utils.py
|
|
@ -374,9 +374,13 @@ def perform_copilot_oauth() -> bool:
|
|||
console.print("[red]GitHub authentication skipped. Exiting...[/red]")
|
||||
return False
|
||||
|
||||
result = subprocess.run(["gh", "auth", "login"])
|
||||
if result.returncode != 0:
|
||||
console.print("[red]`gh auth login` failed.[/red]")
|
||||
try:
|
||||
result = subprocess.run(["gh", "auth", "login"])
|
||||
if result.returncode != 0:
|
||||
console.print("[red]`gh auth login` failed.[/red]")
|
||||
return False
|
||||
except FileNotFoundError:
|
||||
console.print("[red]Error: `gh` command not found. Please install the GitHub CLI.[/red]")
|
||||
return False
|
||||
|
||||
if check_copilot_auth():
|
||||
|
|
|
|||
Loading…
Reference in New Issue