diff options
author | Ian Bicking <ianb@colorstudy.com> | 2010-03-31 14:13:13 -0500 |
---|---|---|
committer | Ian Bicking <ianb@colorstudy.com> | 2010-03-31 14:13:13 -0500 |
commit | ec6061009bc4ba8f48580d407df5f81b64ff071e (patch) | |
tree | 8201f724252698ffc65e75583b376ae551b5f69d /paste/urlparser.py | |
parent | 6bc629d36af3c9827f7d0fb34c17cccdbb9feec9 (diff) | |
download | paste-ec6061009bc4ba8f48580d407df5f81b64ff071e.tar.gz |
remove directory name from 404 errors
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r-- | paste/urlparser.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py index f72355a..a7469e3 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -215,9 +215,7 @@ class URLParser(object): exc = httpexceptions.HTTPNotFound( 'The resource at %s could not be found' % request.construct_url(environ), - comment='SCRIPT_NAME=%r; PATH_INFO=%r; looking in %r; debug: %s' - % (environ.get('SCRIPT_NAME'), environ.get('PATH_INFO'), - self.directory, debug_message or '(none)')) + comment=debug_message) return exc.wsgi_application(environ, start_response) def add_slash(self, environ, start_response): @@ -638,4 +636,3 @@ def make_url_parser(global_conf, directory, base_python_name, hide_extensions=hide_extensions, ignore_extensions=ignore_extensions, **constructor_conf) - |