web/application.py
branchstable
changeset 5377 84d14ddfae13
parent 5326 0d9054eb3bd1
child 5385 b6e250dd7a7d
child 5421 8167de96c523
equal deleted inserted replaced
5376:2c3f14bc2590 5377:84d14ddfae13
   383                 self.validation_error_handler(req, ex)
   383                 self.validation_error_handler(req, ex)
   384             except (Unauthorized, BadRQLQuery, RequestError), ex:
   384             except (Unauthorized, BadRQLQuery, RequestError), ex:
   385                 self.error_handler(req, ex, tb=False)
   385                 self.error_handler(req, ex, tb=False)
   386             except Exception, ex:
   386             except Exception, ex:
   387                 self.error_handler(req, ex, tb=True)
   387                 self.error_handler(req, ex, tb=True)
       
   388             except:
       
   389                 self.critical('Catch all triggered!!!')
       
   390                 self.exception('this is what happened')
   388         finally:
   391         finally:
   389             if req.cnx is not None:
   392             if req.cnx is not None:
   390                 try:
   393                 try:
   391                     req.cnx.rollback()
   394                     req.cnx.rollback()
   392                 except:
   395                 except: