Changeset 607
- Timestamp:
- 09/04/05 17:32:16
- Files:
-
- trunk/cherrypy/_cphttptools.py (modified) (1 diff)
- trunk/cherrypy/tutorial/tut10_http_errors.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cphttptools.py
r606 r607 418 418 applyFilters('beforeErrorResponse') 419 419 420 # _cpOnError will probably change cherrypy.response.body. 421 # It may also change the headerMap, etc. 422 _cputil.getSpecialAttribute('_cpOnError')() 420 # _cpOnError and _cpOnHTTPError will probably change cherrypy.response.body. 421 # They may also change the headerMap, etc. 422 if sys.exc_info()[0] is cherrypy._cperror.HTTPClientError: 423 _cputil.getSpecialAttribute('_cpOnHTTPError')() 424 else: 425 _cputil.getSpecialAttribute('_cpOnError')() 423 426 424 427 finalize() trunk/cherrypy/tutorial/tut10_http_errors.py
r606 r607 41 41 code = int(code) 42 42 HTTPClientError = cherrypy._cperror.HTTPClientError 43 44 raise HTTPClientError(status = int(code)) 43 raise HTTPClientError(status = code) 45 44 error.exposed = True 46 45

