Changeset 1021
- Timestamp:
- 03/29/06 00:24:49
- Files:
-
- trunk/cherrypy/_cputil.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cputil.py
r1020 r1021 324 324 if exc == (None, None, None): 325 325 return "" 326 if hasattr(exc[1], "args"): 327 page_handler_str = "" 328 if len(exc[1].args) > 1: 329 page_handler = exc[1].args.pop() 326 327 page_handler_str = "" 328 args = list(getattr(exc[1], "args", [])) 329 if args: 330 if len(args) > 1: 331 page_handler = args.pop() 330 332 page_handler_str = 'Page handler: %s\n' % repr(page_handler) 333 exc[1].args = tuple(args) 331 334 return page_handler_str + "".join(traceback.format_exception(*exc)) 332 335

