From 0d08263afa9288c042bedbf868b8627b5739314e Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 28 Apr 2020 06:13:03 +0200 Subject: [PATCH] [lfs] Return empty installed list if installed is None Fixes #9 --- legendary/lfs/lgndry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legendary/lfs/lgndry.py b/legendary/lfs/lgndry.py index 5b7d42f..233d717 100644 --- a/legendary/lfs/lgndry.py +++ b/legendary/lfs/lgndry.py @@ -205,6 +205,9 @@ class LGDLFS: indent=2, sort_keys=True) def get_installed_list(self): + if not self._installed: + return [] + return [InstalledGame.from_json(i) for i in self._installed.values()] def save_config(self):