Try click.echo() instead, refs #1958

pull/1961/head
Simon Willison 2022-12-15 16:52:41 -08:00 zatwierdzone przez GitHub
rodzic 0b68996cc5
commit 06d20c792f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -618,7 +618,7 @@ def serve(
url = "http://{}:{}{}?token={}".format(
host, port, ds.urls.path("-/auth-token"), ds._root_token
)
print(url)
click.echo(url)
if open_browser:
if url is None:
# Figure out most convenient URL - to table, database or homepage