Esempio n. 1
0
 def session_commit(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except Exception as e:
         storage.error('db operation error,here are details{}'.format(e))
         storage.warning('transaction rollbacks')
         db_session.rollback()
Esempio n. 2
0
 def session_commit(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except Exception as e:
         storage.error('db operation error,here are details{}'.format(e))
         storage.warning('transaction rollbacks')
         db_session.rollback()
Esempio n. 3
0
 def session_commit(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except Exception as e:
         storage.error('数据库操作失败,具体信息是{}'.format(e))
         db_session.rollback()
Esempio n. 4
0
 def session_commit(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except Exception as e:
         print("入库失败")
         db_session.rollback()