mirror of
https://github.com/thegeeklab/docker-tidy.git
synced 2024-11-21 19:50:40 +00:00
fix: replace deprecated ruamel.yaml.safe_load (#627)
This commit is contained in:
parent
12f2428e9f
commit
347e074e5b
@ -194,7 +194,7 @@ class Config:
|
||||
with open(config, encoding="utf8") as stream:
|
||||
s = stream.read()
|
||||
try:
|
||||
normalized = ruamel.yaml.safe_load(s)
|
||||
normalized = ruamel.yaml.YAML(typ="safe", pure=True).load(s)
|
||||
except (ruamel.yaml.composer.ComposerError, ruamel.yaml.scanner.ScannerError) as e:
|
||||
message = f"{e.context} {e.problem}"
|
||||
raise dockertidy.exception.ConfigError(
|
||||
|
Loading…
Reference in New Issue
Block a user