Skip to content

Commit

Permalink
Merge pull request #373 from loles/config
Browse files Browse the repository at this point in the history
Do not try to open directories
  • Loading branch information
pigmej committed Nov 25, 2015
2 parents 39435de + 7299ed1 commit 213bf3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solar/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def _load_from_path(data, path):
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:
Expand Down

0 comments on commit 213bf3b

Please sign in to comment.