Convert to safe load. Also now allows loading everyting pyyaml supports

This commit is contained in:
Davis Goglin 2016-03-15 14:01:21 -07:00 committed by Davis Goglin
parent c26c875b61
commit 5dc676bea7
1 changed files with 1 additions and 2 deletions

View File

@ -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),