From 6278a21c77564d6e2a337d7d7c5925b012fa4e13 Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 19 May 2020 16:14:20 +0200 Subject: [PATCH] [cli] sync-saves: Fix crash if metadata is missing --- legendary/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index aed2df2..30d5a66 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -252,7 +252,7 @@ class LegendaryCLI: # evaluate current save state for each game. for igame in igames: game = self.core.get_game(igame.app_name) - if not game.supports_cloud_saves: + if not game or not game.supports_cloud_saves: if igame.app_name in latest_save: # this should never happen unless cloud save support was removed from a game logger.warning(f'{igame.app_name} has remote save(s) but does not support cloud saves?!')