Ignore:
Timestamp:
Oct 29, 2009, 1:36:40 AM (15 years ago)
Author:
price
Message:

tighten a bit of code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/main.py

    r2523 r2524  
    103103        err = sys.exc_info()[1]
    104104        if isinstance(err, InvalidInput):
    105             e = revertStandardError()
    106105            cherrypy.request.params['err'] = err
    107             cherrypy.request.params['emsg'] = e
     106            cherrypy.request.params['emsg'] = revertStandardError()
    108107            raise cherrypy.InternalRedirect('/invalidInput')
    109108        if not cherrypy.request.prev or 'err' not in cherrypy.request.prev.params:
    110             e = revertStandardError()
    111109            cherrypy.request.params['err'] = err
    112             cherrypy.request.params['emsg'] = e
     110            cherrypy.request.params['emsg'] = revertStandardError()
    113111            cherrypy.request.params['traceback'] = _cperror.format_exc()
    114112            raise cherrypy.InternalRedirect('/error')
Note: See TracChangeset for help on using the changeset viewer.