This commit is contained in:
parent
c9032716ab
commit
ab33e2af4e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue