summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gamechestcli/gamechest/gameconfig.py2
1 files changed, 1 insertions, 1 deletions
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,