fix: flatpak -> error when retrieving information ( Ubuntu 18.04 )

This commit is contained in:
Vinicius Moreira
2019-10-02 11:09:25 -03:00
parent a5b407379a
commit 5db2026621
2 changed files with 6 additions and 1 deletions

View File

@@ -139,7 +139,10 @@ class FlatpakManager(SoftwareManager):
app_info['name'] = app.name
app_info['type'] = 'runtime' if app.runtime else 'app'
app_info['description'] = strip_html(app.description) if app.description else ''
app_info['installed'] = app_info['installed'].replace('?', ' ')
if app_info.get('installed'):
app_info['installed'] = app_info['installed'].replace('?', ' ')
return app_info
def get_history(self, pkg: FlatpakApplication) -> PackageHistory: