From 706d1837c99a938fd8ae0d78d72525eb6a3e6aee Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 25 Jun 2009 08:05:43 -0400 Subject: Fixed settings=None bug when bug values file is blank/missing. Just return an empty dict instead. Steps to reproduce: $ mkdir /tmp/BE-test $ cd /tmp/BE-test $ be set-root $ be new 'having too much fun' --- libbe/mapfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbe/mapfile.py') diff --git a/libbe/mapfile.py b/libbe/mapfile.py index c36d454..0272890 100644 --- a/libbe/mapfile.py +++ b/libbe/mapfile.py @@ -113,7 +113,7 @@ def parse(contents): else: newlines.append(line) contents = '\n'.join(newlines) - return yaml.load(contents) + return yaml.load(contents) or {} def map_save(rcs, path, map, allow_no_rcs=False): """Save the map as a mapfile to the specified path""" -- cgit