[lfs] Return empty installed list if installed is None

Fixes #9
This commit is contained in:
derrod 2020-04-28 06:13:03 +02:00
parent e44a00d37f
commit 0d08263afa

View file

@ -205,6 +205,9 @@ class LGDLFS:
indent=2, sort_keys=True) indent=2, sort_keys=True)
def get_installed_list(self): def get_installed_list(self):
if not self._installed:
return []
return [InstalledGame.from_json(i) for i in self._installed.values()] return [InstalledGame.from_json(i) for i in self._installed.values()]
def save_config(self): def save_config(self):