[arch] fix -> crashing when information of a given package is not available

This commit is contained in:
Vinicius Moreira
2021-01-02 10:13:53 -03:00
parent 579ea91dcc
commit 4d0660e0ea
15 changed files with 53 additions and 19 deletions

View File

@@ -644,7 +644,12 @@ class ShowPackageInfo(AsyncAction):
def run(self):
if self.pkg:
info = {'__app__': self.pkg}
info.update(self.manager.get_info(self.pkg.model))
pkg_info = self.manager.get_info(self.pkg.model)
if pkg_info:
info.update(pkg_info)
self.notify_finished(info)
self.pkg = None