fix: clear typehinting errors

This commit is contained in:
aclist committed 2026-06-13 02:03:00 +09:00
1 parent e1cb682e74
commit f7a42e2cdb
5 files changed
+11 -13

No files matched your search

+5 -2
View File
@@ -56,9 +56,12 @@ class FolderPicker(Gtk.FileChooserDialog):
folder = self.get_current_folder()
if folder is None:
try:
folder = Path.from_uri(self.get_uri())
uri = self.get_uri()
if uri is None:
return None
return Path.from_uri(uri)
except Exception:
# FIXME
# FIXME: edge cases
return Path("/")
self.destroy()
return Path(folder)