Revert "paths : make TimeoutExpired handling clearer"
This reverts commit 041ede22e1.
There is no point in using "as e" and "raise e", the original version was
better.
This commit is contained in:
@@ -73,9 +73,9 @@ class PathsManager:
|
|||||||
try:
|
try:
|
||||||
paths = self.user_select_files()
|
paths = self.user_select_files()
|
||||||
break
|
break
|
||||||
except subprocess.TimeoutExpired as e:
|
except subprocess.TimeoutExpired:
|
||||||
if input("Timeout expired do you want to retry (y/n): ") != "y":
|
if input("Timeout expired do you want to retry (y/n): ") != "y":
|
||||||
raise e
|
raise
|
||||||
self.write_new_paths(paths)
|
self.write_new_paths(paths)
|
||||||
|
|
||||||
def get_paths_to_sync(self) -> list[str]:
|
def get_paths_to_sync(self) -> list[str]:
|
||||||
|
|||||||
Reference in New Issue
Block a user