bugfix
This commit is contained in:
parent
ce6f3df30e
commit
3bedc70ded
@ -1,6 +1,6 @@
|
||||
|
||||
import asyncio
|
||||
from traceback import print_exc
|
||||
from traceback import format_exc
|
||||
from functools import wraps
|
||||
import codecs
|
||||
|
||||
@ -209,7 +209,8 @@ class DBPools:
|
||||
try:
|
||||
yield sqlor
|
||||
except Exception as e:
|
||||
exception(f'sqlorContext():EXCEPTION{e}')
|
||||
cb = format_exc()
|
||||
exception(f'sqlorContext():EXCEPTION{e}, {cb}')
|
||||
if sqlor and sqlor.dataChanged:
|
||||
await sqlor.rollback()
|
||||
finally:
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
import asyncio
|
||||
from traceback import print_exc
|
||||
from traceback import format_exc
|
||||
from functools import wraps
|
||||
import codecs
|
||||
|
||||
@ -209,7 +209,8 @@ class DBPools:
|
||||
try:
|
||||
yield sqlor
|
||||
except Exception as e:
|
||||
exception(f'sqlorContext():EXCEPTION{e}')
|
||||
cb = format_exc()
|
||||
exception(f'sqlorContext():EXCEPTION{e}, {cb}')
|
||||
if sqlor and sqlor.dataChanged:
|
||||
await sqlor.rollback()
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user