From 869c7499084f79090fe011728f368e6288f8bde5 Mon Sep 17 00:00:00 2001 From: derrod Date: Fri, 21 Jan 2022 17:47:54 +0100 Subject: [PATCH] [core] Return empty games list if assets empty --- legendary/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legendary/core.py b/legendary/core.py index f24b84d..e7b2c57 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -406,6 +406,9 @@ class LegendaryCore: for _platform in platforms: self.get_assets(update_assets=update_assets, platform=_platform) + if not self.lgd.assets: + return _ret, _dlc + assets = {} for _platform, _assets in self.lgd.assets.items(): for _asset in _assets: