From 0570bf89525b60d0764ba7182700fbeeb146d712 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 15 Apr 2025 17:45:43 +0800 Subject: [PATCH] bugfix --- sqlor/dbpools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sqlor/dbpools.py b/sqlor/dbpools.py index 44fa5bc..62bb147 100755 --- a/sqlor/dbpools.py +++ b/sqlor/dbpools.py @@ -205,10 +205,12 @@ class DBPools: @asynccontextmanager async def sqlorContext(self,name): + self.e_except = None sqlor = await self.getSqlor(name) try: yield sqlor except Exception as e: + self.e_except = e cb = format_exc() exception(f'sqlorContext():EXCEPTION{e}, {cb}') if sqlor and sqlor.dataChanged: