Ignore:
Timestamp:
Dec 20, 2009, 9:46:37 PM (15 years ago)
Author:
broder
Message:

tighten a bit of code

File:
1 edited

Legend:

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

    r2704 r2705  
    9898        err = sys.exc_info()[1]
    9999        if isinstance(err, InvalidInput):
    100             e = revertStandardError()
    101100            cherrypy.request.params['err'] = err
    102             cherrypy.request.params['emsg'] = e
     101            cherrypy.request.params['emsg'] = revertStandardError()
    103102            raise cherrypy.InternalRedirect('/invalidInput')
    104103        if not cherrypy.request.prev or 'err' not in cherrypy.request.prev.params:
    105             e = revertStandardError()
    106104            cherrypy.request.params['err'] = err
    107             cherrypy.request.params['emsg'] = e
     105            cherrypy.request.params['emsg'] = revertStandardError()
    108106            cherrypy.request.params['traceback'] = _cperror.format_exc()
    109107            raise cherrypy.InternalRedirect('/error')
Note: See TracChangeset for help on using the changeset viewer.