diff --git a/cmdeploy/src/cmdeploy/remote/_sshexec_bootstrap.py b/cmdeploy/src/cmdeploy/remote/_sshexec_bootstrap.py index f5b4c083..443dfdd1 100644 --- a/cmdeploy/src/cmdeploy/remote/_sshexec_bootstrap.py +++ b/cmdeploy/src/cmdeploy/remote/_sshexec_bootstrap.py @@ -6,11 +6,7 @@ import traceback def _run_loop(cmd_channel): - while 1: - cmd = cmd_channel.receive() - if cmd is None: - break - + while cmd := cmd_channel.receive(): cmd_channel.send(_handle_one_request(cmd))