Skip to content

Commit

Permalink
Specify yaml loader
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdoehne committed Mar 17, 2019
1 parent 3e598bf commit 4276fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stellarisdashboard/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 4276fc6

Please sign in to comment.