diff options
| author | ianb <devnull@localhost> | 2005-07-02 03:28:56 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-07-02 03:28:56 +0000 |
| commit | e999415bb9a4b841135902d372633e466e7058aa (patch) | |
| tree | 624ba6762951dc9214bccab674b7a1e598aeed03 /paste/urlparser.py | |
| parent | b0eb6aa18b0bf35103626dc71afe69d7efb9ec3b (diff) | |
| download | paste-e999415bb9a4b841135902d372633e466e7058aa.tar.gz | |
Fixed bug introduced in refactoring
Diffstat (limited to 'paste/urlparser.py')
| -rw-r--r-- | paste/urlparser.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py index 41d1877..0c333a1 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -131,7 +131,7 @@ class URLParser(object): self.init_module.urlparser_hook(environ) orig_path_info = environ['PATH_INFO'] orig_script_name = environ['SCRIPT_NAME'] - application = self.find_application(environ) + application, filename = self.find_application(environ) if not application: if (self.init_module and getattr(self.init_module, 'not_found_hook', None) @@ -190,10 +190,9 @@ class URLParser(object): else: filename = self.find_file(environ, name) if filename is None: - application = None + return None, filename else: - application = self.get_application(environ, filename) - return application + return self.get_application(environ, filename), filename def not_found(self, environ, start_response, debug_message=None): status, headers, body = wsgilib.error_response( |
