Changeset 708
- Timestamp:
- 10/03/05 11:57:58
- Files:
-
- trunk/cherrypy/_cperror.py (modified) (1 diff)
- trunk/cherrypy/lib/cptools.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cperror.py
r707 r708 209 209 """ Happens when a URL couldn't be mapped to any class.method """ 210 210 211 def __init__(self, path): 211 def __init__(self, path=None): 212 if path is None: 213 path = cherrypy.request.path 212 214 self.args = (path,) 213 215 HTTPError.__init__(self, 404, "The path %s was not found." % repr(path)) trunk/cherrypy/lib/cptools.py
r682 r708 128 128 except TypeError: 129 129 pass 130 raise cherrypy.NotFound( cherrypy.request.path)130 raise cherrypy.NotFound() 131 131 default.exposed = True 132 132 … … 247 247 if getattr(cherrypy, "debug", None): 248 248 cherrypy.log(" NOT FOUND file: %s" % path, "DEBUG") 249 raise cherrypy.NotFound( cherrypy.request.path)249 raise cherrypy.NotFound() 250 250 251 251 if contentType is None:

