This commit is contained in:
yumoqing 2025-12-22 16:47:35 +08:00
parent b007ed5c17
commit fb44d60283

View File

@ -143,8 +143,10 @@ class DBPools:
self.e_except = e self.e_except = e
cb = format_exc() cb = format_exc()
exception(f'sqlorContext():EXCEPTION{e}, {cb}') exception(f'sqlorContext():EXCEPTION{e}, {cb}')
if sqlor and sqlor.dataChanged: try:
await sqlor.rollback() await sqlor.rollback()
except:
pass
def get_exception(self): def get_exception(self):
return self.e_except return self.e_except