mirror of
https://github.com/aclist/dztui.git
synced 2026-11-08 02:50:46 +01:00
fix: clear typehinting errors
This commit is contained in:
1 parent
e1cb682e74
commit
f7a42e2cdb
5 files changed
+11
-13
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user