Do not try to open directories

This commit is contained in:
Łukasz Oleś 2015-11-25 15:59:16 +01:00
parent c1476d37d8
commit 7299ed12f5

View File

@ -38,6 +38,8 @@ def from_configs():
for path in paths:
if not os.path.exists(path):
continue
if not os.path.isfile(path):
continue
with open(path) as f:
loaded = yaml.load(f)
if loaded: