summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2024-05-21 15:27:38 +0200
committervg <vgm+dev@devys.org>2024-05-21 15:27:38 +0200
commit3ee9e5d90e114546e843a933b02d47cf62bf38f2 (patch)
tree80edcbb0268cd8941e1e7779f24979395c584df1
parent2cd409caa6421e66836b48979fcbfd3b685baa80 (diff)
downloadgamechest-3ee9e5d90e114546e843a933b02d47cf62bf38f2.tar.gz
gamechest-3ee9e5d90e114546e843a933b02d47cf62bf38f2.tar.bz2
gamechest-3ee9e5d90e114546e843a933b02d47cf62bf38f2.zip
git-sync on seele
-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,