Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SafetyQuincyF committed Oct 31, 2024
1 parent f2c58b9 commit 3ca4697
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions safety/auth/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ def handle_timeout(self) -> None:
headless = kwargs.get("headless", False)
initial_state = kwargs.get("initial_state", None)
ctx = kwargs.get("ctx", None)

message = "Copy and paste this url into your browser:"
message = "Copy and paste this URL into your browser:\n⚠️ Ensure there are no extra spaces, especially at line breaks, as they may break the link."

if not headless:
# Start a threaded HTTP server to handle the callback
Expand All @@ -238,7 +237,7 @@ def handle_timeout(self) -> None:
console.print(f"{message} {target}")
else:
console.print(f"{message} [link={target}]{target}[/link]")

if headless:
# Handle the headless mode where user manually provides the response
exchange_data = None
Expand Down

0 comments on commit 3ca4697

Please sign in to comment.