From ace9ce8b5d6c809639d1dfc7db834bc2f8397e69 Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 31 Oct 2020 19:48:08 +0100 Subject: [PATCH] [core] Show warning when looking up DLC fails Might fix #101 --- legendary/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legendary/core.py b/legendary/core.py index 9ad6fdc..da0533c 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -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 []