From 4276fc667a3c0b956b3f2c78ec76278c45f3c02c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20D=C3=B6hne?= Date: Sun, 17 Mar 2019 16:08:50 +0100 Subject: [PATCH] Specify yaml loader --- stellarisdashboard/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stellarisdashboard/config.py b/stellarisdashboard/config.py index 2df0f4c..d6bfc46 100644 --- a/stellarisdashboard/config.py +++ b/stellarisdashboard/config.py @@ -227,7 +227,7 @@ def _apply_existing_settings(config: Config): if settings_file.exists() and settings_file.is_file(): logger.info(f"Reading settings from {settings_file}...") with open(settings_file, "r") as f: - settings.update(yaml.load(f)) + settings.update(yaml.load(f, Loader=yaml.SafeLoader)) config.apply_dict(settings)