Skip to content

Commit

Permalink
Merge pull request #25 from Carreau/log-2
Browse files Browse the repository at this point in the history
log can be Nonetype
  • Loading branch information
takluyver committed Jun 3, 2015
2 parents 45ceb1d + 72645a1 commit f6f5946
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions traitlets/config/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,11 @@ def _load_config_files(cls, basefilename, path=None, log=None):
for path in path[::-1]:
# path list is in descending priority order, so load files backwards:
pyloader = cls.python_config_loader_class(basefilename+'.py', path=path, log=log)
log.debug("Attempting to load config file %s.py in path %s", basefilename, path)
if log:
log.debug("Attempting to load config file %s.py in path %s", basefilename, path)
jsonloader = cls.json_config_loader_class(basefilename+'.json', path=path, log=log)
log.debug("Attempting to load config file %s.json in path %s", basefilename, path)
if log:
log.debug("Attempting to load config file %s.json in path %s", basefilename, path)
config = None
for loader in [pyloader, jsonloader]:
try:
Expand Down

0 comments on commit f6f5946

Please sign in to comment.