Skip to content

Commit

Permalink
Merge pull request ipython#5389 from minrk/log-files-redirect
Browse files Browse the repository at this point in the history
better log message in deprecated files/ redirect
  • Loading branch information
ellisonbg committed Mar 20, 2014
2 parents e4bb14b + 448135f commit cdc3f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/html/notebook/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def get(self, path=''):
# so it should work until both are cleaned up.
parts = path.split('/')
files_path = os.path.join(nbm.notebook_dir, *parts)
self.log.warn("filespath: %s", files_path)
if not os.path.exists(files_path):
self.log.warn("Deprecated files/ URL: %s", path)
path = path.replace('/files/', '/', 1)

url = url_path_join(self.base_url, 'files', path)
Expand Down

0 comments on commit cdc3f8c

Please sign in to comment.