Skip to content

Commit

Permalink
Verify path exists (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gopalakrishnan.V authored and achillesrasquinha committed Mar 20, 2018
1 parent f58a0d0 commit b93a9bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions candis/config/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def load(self, filename = None):

config = Config(data)

if filename:
# TODO: Check if path exists?
if filename and os.path.isfile(filename):
with open(filename) as f:
data = yaml.load(f)

Expand Down

0 comments on commit b93a9bf

Please sign in to comment.