mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Check that the path exists before preceding
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user