enable callback tracebacks
This commit is contained in:
parent
0723026a56
commit
ece5082096
3 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,7 @@ class SQLiteInterruptedError(sqlite3.OperationalError):
|
||||||
|
|
||||||
|
|
||||||
ATTRIBUTE_ARRAY_MAX_LENGTH = 100
|
ATTRIBUTE_ARRAY_MAX_LENGTH = 100
|
||||||
|
sqlite3.enable_callback_tracebacks(True)
|
||||||
|
|
||||||
INTEGER_PARAMS = {
|
INTEGER_PARAMS = {
|
||||||
'height', 'creation_height', 'activation_height', 'expiration_height',
|
'height', 'creation_height', 'activation_height', 'expiration_height',
|
||||||
|
|
|
@ -22,6 +22,7 @@ from .common import CLAIM_TYPES, STREAM_TYPES, COMMON_TAGS
|
||||||
|
|
||||||
|
|
||||||
ATTRIBUTE_ARRAY_MAX_LENGTH = 100
|
ATTRIBUTE_ARRAY_MAX_LENGTH = 100
|
||||||
|
sqlite3.enable_callback_tracebacks(True)
|
||||||
|
|
||||||
|
|
||||||
class SQLDB:
|
class SQLDB:
|
||||||
|
|
|
@ -11,6 +11,7 @@ from torba.client.basetransaction import BaseTransaction, TXRefImmutable
|
||||||
from torba.client.bip32 import PubKey
|
from torba.client.bip32 import PubKey
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
sqlite3.enable_callback_tracebacks(True)
|
||||||
|
|
||||||
|
|
||||||
class AIOSQLite:
|
class AIOSQLite:
|
||||||
|
@ -24,6 +25,7 @@ class AIOSQLite:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def connect(cls, path: Union[bytes, str], *args, **kwargs):
|
async def connect(cls, path: Union[bytes, str], *args, **kwargs):
|
||||||
|
sqlite3.enable_callback_tracebacks(True)
|
||||||
def _connect():
|
def _connect():
|
||||||
return sqlite3.connect(path, *args, **kwargs)
|
return sqlite3.connect(path, *args, **kwargs)
|
||||||
db = cls()
|
db = cls()
|
||||||
|
|
Loading…
Reference in a new issue