From 5a76dab3c694759b941d3953fc1612726cf0559c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 13 Aug 2021 17:02:27 +0530 Subject: [PATCH] ControlMaster must not suppress exceptions --- kittens/remote_file/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/remote_file/main.py b/kittens/remote_file/main.py index b2e3390f7..d1decd67c 100644 --- a/kittens/remote_file/main.py +++ b/kittens/remote_file/main.py @@ -138,7 +138,6 @@ class ControlMaster: ).wait() if self.tdir: shutil.rmtree(self.tdir) - return True @property def is_alive(self) -> bool: @@ -293,6 +292,7 @@ def handle_action(action: str, cli_opts: RemoteFileCLIOptions) -> Result: if not master.download(): show_error(f'Failed to download {remote_path}') return None + 1/0 mtime = os.path.getmtime(master.dest) print(reset_terminal(), end='', flush=True) editor_process = subprocess.Popen(editor + [master.dest])