[view] fix: some package icons would not appear if there is no URL associated with them

This commit is contained in:
Vinicius Moreira
2022-03-04 15:21:00 -03:00
parent e737df8e8c
commit ec0d0d6853
2 changed files with 3 additions and 1 deletions

View File

@@ -408,7 +408,7 @@ class PackagesTable(QTableWidget):
if icon.isNull():
icon = QIcon(pkg.model.get_default_icon_path())
else:
elif pkg.model.icon_url:
self.icon_cache.add_non_existing(pkg.model.icon_url, {'icon': icon, 'bytes': None})
except: