chore(sdk): Improve a message printed for users. Closes #10100 (#10101)

This commit is contained in:
gkcalat 2023-10-15 15:58:53 -07:00 committed by GitHub
parent c9032716ab
commit ab33e2af4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -264,9 +264,10 @@ def get_auth_code(client_id: str) -> Tuple[str, str]:
if ('SSH_CONNECTION' in os.environ) or ('SSH_CLIENT'
in os.environ) or is_ipython():
try:
print((
'SSH connection detected. Please follow the instructions below.'
' Otherwise, press CTRL+C if you are not connected via SSH.'))
print(('SSH connection or IPython shell detected. Please follow the'
' instructions below. Otherwise, press CTRL+C if you are not'
' connected via SSH and not using IPython (e.g. Jupyter'
' Notebook).'))
authorization_response = get_auth_response_ssh(host, port, auth_url)
except KeyboardInterrupt:
authorization_response = None