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