From 1939ed9050a6a11d9b5466fe7af659beea58767b Mon Sep 17 00:00:00 2001 From: skilpedde Date: Sat, 11 Nov 2023 09:38:32 +0100 Subject: [PATCH] Add catch for creation of rows --- src/window.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/window.py b/src/window.py index 534f15d..adc2231 100644 --- a/src/window.py +++ b/src/window.py @@ -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)