cubicweb/server/session.py
branch3.25
changeset 12104 3ae16f70add4
parent 12047 85416b43310a
child 12127 078265f222e3
equal deleted inserted replaced
12103:07d75be1bb88 12104:3ae16f70add4
   850                             print(operation)
   850                             print(operation)
   851                         operation.processed = 'postcommit'
   851                         operation.processed = 'postcommit'
   852                         try:
   852                         try:
   853                             operation.handle_event('postcommit_event')
   853                             operation.handle_event('postcommit_event')
   854                         except BaseException:
   854                         except BaseException:
       
   855                             if self.repo.config.mode == 'test':
       
   856                                 raise
   855                             self.critical('error while postcommit',
   857                             self.critical('error while postcommit',
   856                                           exc_info=sys.exc_info())
   858                                           exc_info=sys.exc_info())
   857                 self.debug('postcommit transaction %s done', self)
   859                 self.debug('postcommit transaction %s done', self)
   858                 return self.transaction_uuid(set=False)
   860                 return self.transaction_uuid(set=False)
   859         finally:
   861         finally: