Fix SSH retry crash when password cannot be passed

This commit is contained in:
allegroai 2023-09-15 14:12:24 +03:00
parent d98202bfb9
commit 9d58110755

View File

@ -755,7 +755,8 @@ def start_ssh_tunnel(username, remote_address, ssh_port, ssh_password, local_rem
child.terminate(force=True)
child = None
print('\n')
child.logfile = None
if child:
child.logfile = None
return child, ssh_password