mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[arch] fix -> crashing when information of a given package is not available
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user