Do not try to open directories
This commit is contained in:
parent
c1476d37d8
commit
7299ed12f5
@ -38,6 +38,8 @@ def from_configs():
|
|||||||
for path in paths:
|
for path in paths:
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
continue
|
continue
|
||||||
|
if not os.path.isfile(path):
|
||||||
|
continue
|
||||||
with open(path) as f:
|
with open(path) as f:
|
||||||
loaded = yaml.load(f)
|
loaded = yaml.load(f)
|
||||||
if loaded:
|
if loaded:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user