From e10a1f43f6ef5c80b4384df5801f4804f49a76dd Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 3 Aug 2024 00:00:01 -0300 Subject: TODO: updates (2) --- TODO.md | 2 ++ packages/finder/main.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index ad8364a..38c58df 100644 --- a/TODO.md +++ b/TODO.md @@ -8,6 +8,8 @@ * [ ] `FinderPluginFileNameSearcher.set_path`: check if path exists. * [ ] `FinderPluginFileXdgOpener.open`: check if file actually exists (and if it's not a dead symbolic link etc). +* [ ] `FinderMain.set_handlers()`: handle exception when path is neither file + or dir (like a non-existent path). ## UX diff --git a/packages/finder/main.py b/packages/finder/main.py index 931f1d4..38b2d26 100644 --- a/packages/finder/main.py +++ b/packages/finder/main.py @@ -219,7 +219,6 @@ class FinderMain(): elif os.path.isfile(self.path): self.searcher = FinderPluginFileLineSearcher(self.path) else: - # TODO: exception pass self.opener = FinderPluginFileXdgOpener() -- cgit v1.2.3