Add catch for creation of rows

This commit is contained in:
skilpedde
2023-11-11 09:38:32 +01:00
parent 8db85cde74
commit 1939ed9050

View File

@@ -393,11 +393,17 @@ class WarehouseWindow(Adw.ApplicationWindow):
self.user_mask_list = self.my_utils.getHostMasks("user")
for index in range(len(self.host_flatpaks)):
if "eol" in self.host_flatpaks[index][12]:
self.eol_list.append(self.host_flatpaks[index][8])
try:
if "eol" in self.host_flatpaks[index][12]:
self.eol_list.append(self.host_flatpaks[index][8])
except:
print("Could not find EOL")
for index in range(len(self.host_flatpaks)):
self.creat_row(index)
try:
self.creat_row(index)
except:
print("Could not create row")
self.windowSetEmpty(not self.flatpaks_list_box.get_row_at_index(0))
self.applyFilter(self.filter_list)