diff --git a/sqlor/dbpools.py b/sqlor/dbpools.py index cabf7a9..85f7f84 100755 --- a/sqlor/dbpools.py +++ b/sqlor/dbpools.py @@ -143,8 +143,10 @@ class DBPools: self.e_except = e cb = format_exc() exception(f'sqlorContext():EXCEPTION{e}, {cb}') - if sqlor and sqlor.dataChanged: + try: await sqlor.rollback() + except: + pass def get_exception(self): return self.e_except