You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrap client exceptions into PEP 249 hierarchy; serialize close
- cursor.execute used to let dqliteclient.exceptions.* leak through
to the caller. PEP 249 requires all error classes to live under
the module's own hierarchy. New _call_client helper wraps the
client call, mapping:
client.OperationalError → dbapi.OperationalError
client.DqliteConnectionError → dbapi.OperationalError
client.ClusterError → dbapi.OperationalError
client.ProtocolError → dbapi.InterfaceError
client.DataError → dbapi.DataError
client.InterfaceError → dbapi.InterfaceError
Original cause preserved via `from`. Applied at both sync and
async cursor entry points.
- AsyncConnection.close() now acquires _op_lock before tearing
down the underlying protocol. A concurrent task mid-execute used
to find the socket closed underneath it; close now waits for
the in-flight operation to complete.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments