Skip to content

Commit a22b39b

Browse files
authored
fix: Also catch a TimeoutError (#1092)
Signed-off-by: Kaju Bubanja <[email protected]>
1 parent 26dccbf commit a22b39b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ros2cli/ros2cli/node/daemon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def connected(self):
4646
for method in self._proxy.system.listMethods()
4747
if not method.startswith('system.')
4848
]
49-
except (ConnectionRefusedError, ConnectionResetError):
49+
except (ConnectionRefusedError, ConnectionResetError, TimeoutError):
5050
return False
5151
return True
5252

0 commit comments

Comments
 (0)