aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-06-25 08:05:43 -0400
committerW. Trevor King <wking@drexel.edu>2009-06-25 08:05:43 -0400
commit706d1837c99a938fd8ae0d78d72525eb6a3e6aee (patch)
tree93704cf500e024bb1cbf76e8b9102c0a58598304
parent797bf225ff29a73fa0770d6cefef12a27cc3d760 (diff)
downloadbugseverywhere-706d1837c99a938fd8ae0d78d72525eb6a3e6aee.tar.gz
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'
-rw-r--r--libbe/mapfile.py2
1 files changed, 1 insertions, 1 deletions
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"""