bugfix
This commit is contained in:
parent
eeade16de9
commit
19f54c9ebf
@ -12,6 +12,7 @@ from appPublic.Singleton import SingletonDecorator
|
|||||||
from appPublic.myjson import loadf
|
from appPublic.myjson import loadf
|
||||||
from appPublic.jsonConfig import getConfig
|
from appPublic.jsonConfig import getConfig
|
||||||
from appPublic.rc4 import unpassword
|
from appPublic.rc4 import unpassword
|
||||||
|
from appPublic.log import exception
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
from .sor import SQLor
|
from .sor import SQLor
|
||||||
@ -208,8 +209,7 @@ class DBPools:
|
|||||||
try:
|
try:
|
||||||
yield sqlor
|
yield sqlor
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print_exc()
|
exception(f'sqlorContext():EXCEPTION{e}')
|
||||||
print('Exeception=',e)
|
|
||||||
if sqlor and sqlor.dataChanged:
|
if sqlor and sqlor.dataChanged:
|
||||||
await sqlor.rollback()
|
await sqlor.rollback()
|
||||||
finally:
|
finally:
|
||||||
|
@ -12,6 +12,7 @@ from appPublic.Singleton import SingletonDecorator
|
|||||||
from appPublic.myjson import loadf
|
from appPublic.myjson import loadf
|
||||||
from appPublic.jsonConfig import getConfig
|
from appPublic.jsonConfig import getConfig
|
||||||
from appPublic.rc4 import unpassword
|
from appPublic.rc4 import unpassword
|
||||||
|
from appPublic.log import exception
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
from .sor import SQLor
|
from .sor import SQLor
|
||||||
@ -208,8 +209,7 @@ class DBPools:
|
|||||||
try:
|
try:
|
||||||
yield sqlor
|
yield sqlor
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print_exc()
|
exception(f'sqlorContext():EXCEPTION{e}')
|
||||||
print('Exeception=',e)
|
|
||||||
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