diff --git a/lbry/lbry/wallet/server/db/reader.py b/lbry/lbry/wallet/server/db/reader.py index 3320cda7f..ec18310a9 100644 --- a/lbry/lbry/wallet/server/db/reader.py +++ b/lbry/lbry/wallet/server/db/reader.py @@ -34,7 +34,7 @@ class SQLiteInterruptedError(sqlite3.OperationalError): ATTRIBUTE_ARRAY_MAX_LENGTH = 100 - +sqlite3.enable_callback_tracebacks(True) INTEGER_PARAMS = { 'height', 'creation_height', 'activation_height', 'expiration_height', diff --git a/lbry/lbry/wallet/server/db/writer.py b/lbry/lbry/wallet/server/db/writer.py index 3d213ddba..f015309af 100644 --- a/lbry/lbry/wallet/server/db/writer.py +++ b/lbry/lbry/wallet/server/db/writer.py @@ -22,6 +22,7 @@ from .common import CLAIM_TYPES, STREAM_TYPES, COMMON_TAGS ATTRIBUTE_ARRAY_MAX_LENGTH = 100 +sqlite3.enable_callback_tracebacks(True) class SQLDB: diff --git a/torba/torba/client/basedatabase.py b/torba/torba/client/basedatabase.py index 6b8395a1c..14ae3685f 100644 --- a/torba/torba/client/basedatabase.py +++ b/torba/torba/client/basedatabase.py @@ -11,6 +11,7 @@ from torba.client.basetransaction import BaseTransaction, TXRefImmutable from torba.client.bip32 import PubKey log = logging.getLogger(__name__) +sqlite3.enable_callback_tracebacks(True) class AIOSQLite: @@ -24,6 +25,7 @@ class AIOSQLite: @classmethod async def connect(cls, path: Union[bytes, str], *args, **kwargs): + sqlite3.enable_callback_tracebacks(True) def _connect(): return sqlite3.connect(path, *args, **kwargs) db = cls()