From b0c165b8b07c7ad03486d085bcad0bd09ff8efee Mon Sep 17 00:00:00 2001 From: furtest Date: Sat, 31 Jan 2026 11:39:59 +0100 Subject: [PATCH] Revert "paths : make TimeoutExpired handling clearer" This reverts commit 041ede22e1b036ff52a3c9ac16c0e3bde30b7969. There is no point in using "as e" and "raise e", the original version was better. --- src/unisync/paths.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unisync/paths.py b/src/unisync/paths.py index ee71a78..127560e 100644 --- a/src/unisync/paths.py +++ b/src/unisync/paths.py @@ -73,9 +73,9 @@ class PathsManager: try: paths = self.user_select_files() break - except subprocess.TimeoutExpired as e: + except subprocess.TimeoutExpired: if input("Timeout expired do you want to retry (y/n): ") != "y": - raise e + raise self.write_new_paths(paths) def get_paths_to_sync(self) -> list[str]: