Check that the path exists before preceding

This commit is contained in:
heliguy
2024-07-30 22:28:19 -04:00
parent 5ca4d71f95
commit 9cd78bb78d

View File

@@ -45,6 +45,9 @@ class UserDataPage(Adw.BreakpointBin):
self.leftover_data.clear()
# paks = dict(HostInfo.id_to_flatpak)
if not os.path.exists(f"{HostInfo.home}/.var/app"):
return
for folder in os.listdir(f"{HostInfo.home}/.var/app"):
try:
self.data_flatpaks.append(HostInfo.id_to_flatpak[folder])