mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
ssh_box: Shutdown container when fail to start ssh session (#1872)
This commit is contained in:
@@ -253,7 +253,13 @@ class DockerSSHBox(Sandbox):
|
||||
raise e
|
||||
time.sleep(5)
|
||||
self.setup_user()
|
||||
self.start_ssh_session()
|
||||
|
||||
try:
|
||||
self.start_ssh_session()
|
||||
except pxssh.ExceptionPxssh as e:
|
||||
self.close()
|
||||
raise e
|
||||
|
||||
# make sure /tmp always exists
|
||||
self.execute('mkdir -p /tmp')
|
||||
# set git config
|
||||
|
||||
Reference in New Issue
Block a user