web/application.py
branchstable
changeset 4709 6a71fc0b4274
parent 4679 d8ad65dab3e9
child 4897 e402e0b32075
child 4911 898c35be5873
equal deleted inserted replaced
4708:2bd3d03721f3 4709:6a71fc0b4274
   393         self.exception(repr(ex))
   393         self.exception(repr(ex))
   394         req.set_header('Cache-Control', 'no-cache')
   394         req.set_header('Cache-Control', 'no-cache')
   395         req.remove_header('Etag')
   395         req.remove_header('Etag')
   396         req.message = None
   396         req.message = None
   397         req.reset_headers()
   397         req.reset_headers()
       
   398         if req.json_request:
       
   399             raise RemoteCallFailed(unicode(ex))
   398         try:
   400         try:
   399             req.data['ex'] = ex
   401             req.data['ex'] = ex
   400             if tb:
   402             if tb:
   401                 req.data['excinfo'] = excinfo
   403                 req.data['excinfo'] = excinfo
   402             req.form['vid'] = 'error'
   404             req.form['vid'] = 'error'