From fb44d60283708b13f1620d46cf18671013d9bd1b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 22 Dec 2025 16:47:35 +0800 Subject: [PATCH] bugfix --- sqlor/dbpools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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