Convert to safe load. Also now allows loading everyting pyyaml supports
This commit is contained in:
parent
c26c875b61
commit
5dc676bea7
|
@ -27,8 +27,7 @@ class Config(object):
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(config_path) as f:
|
config = yaml.safe_load(f)
|
||||||
config = yaml.load(f)
|
|
||||||
except EnvironmentError as e:
|
except EnvironmentError as e:
|
||||||
raise exceptions.ConfigNotFoundError('Couldn\'t read config at one or more of {config_path}'.format(
|
raise exceptions.ConfigNotFoundError('Couldn\'t read config at one or more of {config_path}'.format(
|
||||||
config_path="\n".join(config_path),
|
config_path="\n".join(config_path),
|
||||||
|
|
Loading…
Reference in New Issue