fix exceptions in yaml loading

This commit is contained in:
Thomas S Hatch 2012-06-23 00:51:39 -06:00
parent a97453df4d
commit 57081f4032

View File

@ -35,7 +35,7 @@ class Map(object):
return {}
try:
with open(self.opts['map'], 'rb') as fp_:
map_ = yaml.loads(fb_.read())
map_ = yaml.load(fp_.read())
except Exception:
return {}
if 'include' in map_: