Ticket #3328: 3328.patch
| File 3328.patch, 1.1 KB (added by eblot, 3 years ago) |
|---|
-
trac/web/main.py
170 170 171 171 for filter_ in self.filters: 172 172 chosen_handler = filter_.pre_process_request(req, chosen_handler) 173 173 174 req_handler = chosen_handler 174 175 if not chosen_handler: 175 raise HTTPNotFound('No handler matched request to %s', 176 req.path_info) 176 chosen_handler = RequestDispatcher.default_handler 177 177 178 178 # Attach user information to the request 179 179 anonymous_request = getattr(chosen_handler, 'anonymous_request', False) … … 193 193 populate_hdf(req.hdf, self.env, req) 194 194 chrome.populate_hdf(req, chosen_handler) 195 195 196 # No handler matched request 197 if not req_handler: 198 raise HTTPNotFound('No handler matched request to %s', 199 req.path_info) 200 196 201 # Process the request and render the template 197 202 try: 198 203 try:
