Skip to content

Commit 8563008

Browse files
cleanup: node._try_shutdown does not pass expect_error to os_ops.kill (#297)
This argument (expect_error) it is a bad idea and should be removed from os_ops.kill
1 parent c543963 commit 8563008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def _try_shutdown(self, max_attempts, with_force=False):
669669

670670
try:
671671
eprint('Force stopping node {0} with PID {1}'.format(self.name, node_pid))
672-
self.os_ops.kill(node_pid, signal.SIGKILL, expect_error=False)
672+
self.os_ops.kill(node_pid, signal.SIGKILL)
673673
except Exception:
674674
# The node has already stopped
675675
pass

0 commit comments

Comments
 (0)