paths : make TimeoutExpired handling clearer
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:
|
except subprocess.TimeoutExpired as e:
|
||||||
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
|
raise e
|
||||||
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