From 812590db7ce74680391b3a3988c8bcf5e9b2bf54 Mon Sep 17 00:00:00 2001 From: derrod Date: Sun, 17 May 2020 15:36:34 +0200 Subject: [PATCH] [cli] Fix crash if metadata does not have customAttributes --- legendary/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index 4ae6d8f..225823c 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 'CloudSaveFolder' not in game.metadata['customAttributes']: + if 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?!')