diff options
| -rw-r--r-- | gamechestcli/gamechest/gameconfig.py | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/gamechestcli/gamechest/gameconfig.py b/gamechestcli/gamechest/gameconfig.py index f1a06c7..0b3d855 100644 --- a/gamechestcli/gamechest/gameconfig.py +++ b/gamechestcli/gamechest/gameconfig.py @@ -39,6 +39,8 @@ class GameConfig:              stack.enter_context(contextlib.suppress(FileNotFoundError))              fdin = stack.enter_context(open(game_config_filepath, 'r',                                              encoding='utf8')) +            # in case yaml file is empty, None will be returned, in this case +            # fallback to empty dict.              self.config = yaml.safe_load(fdin) or {}          self.config = {              **DEFAULT_CONFIG_DICT,  | 
