diff --git a/trino/auth.py b/trino/auth.py index 12456ba4..306539f0 100644 --- a/trino/auth.py +++ b/trino/auth.py @@ -291,8 +291,7 @@ class ConsoleRedirectHandler(RedirectHandler): """ def __call__(self, url: str) -> None: - print("Open the following URL in browser for the external authentication:") - print(url) + print(f"Open the following URL in browser for the external authentication:\n{url}", flush=True) class WebBrowserRedirectHandler(RedirectHandler):