[core] Return empty games list if assets empty

This commit is contained in:
derrod 2022-01-21 17:47:54 +01:00
parent 3793601de3
commit 869c749908

View file

@ -406,6 +406,9 @@ class LegendaryCore:
for _platform in platforms: for _platform in platforms:
self.get_assets(update_assets=update_assets, platform=_platform) self.get_assets(update_assets=update_assets, platform=_platform)
if not self.lgd.assets:
return _ret, _dlc
assets = {} assets = {}
for _platform, _assets in self.lgd.assets.items(): for _platform, _assets in self.lgd.assets.items():
for _asset in _assets: for _asset in _assets: