Permalink
Browse files

ignoring empty config files

  • Loading branch information...
1 parent 845601a commit 6135d79e7a8099d2fbc6fd4a931d287bcaa235b1 @pylover committed Jan 17, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 pymlconf/config_manager.py
@@ -86,7 +86,10 @@ def load_files(self, files, filename_as_namespace=False):
node = self._ensure_namespaces(*namespace.split('.'))
else:
node = self
- node.merge(load_yaml(f))
+
+ loaded_yaml = load_yaml(f)
+ if loaded_yaml:
+ node.merge(loaded_yaml)
loadfiles = load_files

0 comments on commit 6135d79

Please sign in to comment.