We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b8babc1 + 9db6b79 commit f9e37fdCopy full SHA for f9e37fd
1 file changed
labgrid/driver/sshdriver.py
@@ -97,13 +97,11 @@ def _start_own_master(self):
97
# connection refused during target startup
98
connect_timeout = round(timeout.remaining)
99
while True:
100
- if connect_timeout == 0:
101
- raise Exception("Timeout while waiting for ssh connection")
102
try:
103
return self._start_own_master_once(connect_timeout)
104
except ExecutionError as e:
105
if timeout.expired:
106
- raise e
+ raise Exception("Timeout while waiting for ssh connection") from e
107
time.sleep(0.5)
108
109
0 commit comments