From 3ee9e5d90e114546e843a933b02d47cf62bf38f2 Mon Sep 17 00:00:00 2001 From: vg Date: Tue, 21 May 2024 15:27:38 +0200 Subject: git-sync on seele --- gamechestcli/gamechest/gameconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamechestcli/gamechest/gameconfig.py b/gamechestcli/gamechest/gameconfig.py index 2c038c2..f1a06c7 100644 --- a/gamechestcli/gamechest/gameconfig.py +++ b/gamechestcli/gamechest/gameconfig.py @@ -39,7 +39,7 @@ class GameConfig: stack.enter_context(contextlib.suppress(FileNotFoundError)) fdin = stack.enter_context(open(game_config_filepath, 'r', encoding='utf8')) - self.config = yaml.safe_load(fdin) + self.config = yaml.safe_load(fdin) or {} self.config = { **DEFAULT_CONFIG_DICT, **self.config, -- cgit v1.2.3