web/application.py
branchstable
changeset 6273 8dbdd4cc7938
parent 6272 bb546568e466
child 6279 42079f752a9c
child 6318 de6264ac7c50
equal deleted inserted replaced
6272:bb546568e466 6273:8dbdd4cc7938
   432             except BaseException, ex:
   432             except BaseException, ex:
   433                 self.error_handler(req, ex, tb=True)
   433                 self.error_handler(req, ex, tb=True)
   434             except:
   434             except:
   435                 self.critical('Catch all triggered!!!')
   435                 self.critical('Catch all triggered!!!')
   436                 self.exception('this is what happened')
   436                 self.exception('this is what happened')
       
   437                 result = 'oops'
   437         finally:
   438         finally:
   438             if req.cnx and not commited:
   439             if req.cnx and not commited:
   439                 try:
   440                 try:
   440                     req.cnx.rollback()
   441                     req.cnx.rollback()
   441                 except:
   442                 except: