[core] Show warning when looking up DLC fails

Might fix #101
This commit is contained in:
derrod 2020-10-31 19:48:08 +01:00
parent d842780c73
commit ace9ce8b5d

View file

@ -261,6 +261,10 @@ class LegendaryCore:
def get_dlc_for_game(self, app_name):
game = self.get_game(app_name)
if not game:
self.log.warning(f'Metadata for {app_name} is missing!')
return []
if game.is_dlc: # dlc shouldn't have DLC
return []