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

@@ -12,6 +12,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- AUR:
- Installed files available in the Info window
- Improving Arch distro checking
- Flatpak:
- error when retrieving information ( Ubuntu 18.04 )
### Fixes
- Update-check daemon not showing notifications

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: