aboutsummaryrefslogtreecommitdiff
path: root/bindings/python-cffi/notmuch2/_thread.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2025-08-28 11:00:59 +0200
committerDavid Bremner <david@tethera.net>2025-09-14 13:32:45 -0300
commitc55953e9de408674d71db78ea4fff941972b2f0a (patch)
tree3c343b3d0644d51b596e2cbf16fe586d86d57dae /bindings/python-cffi/notmuch2/_thread.py
parentabdff73a3333b295a599135ad2777e852189e188 (diff)
bindings/python-cffi: handle NOTMUCH_STATUS_OPERATION_INVALIDATED
Raise it as a newly added OperationInvalidatedError exception.
Diffstat (limited to 'bindings/python-cffi/notmuch2/_thread.py')
-rw-r--r--bindings/python-cffi/notmuch2/_thread.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bindings/python-cffi/notmuch2/_thread.py b/bindings/python-cffi/notmuch2/_thread.py
index e883f308..af49d2bf 100644
--- a/bindings/python-cffi/notmuch2/_thread.py
+++ b/bindings/python-cffi/notmuch2/_thread.py
@@ -185,7 +185,8 @@ class ThreadIter(base.NotmuchIter):
self._db = db
super().__init__(parent, threads_p,
fn_destroy=capi.lib.notmuch_threads_destroy,
- fn_valid=capi.lib.notmuch_threads_valid,
+ fn_valid=None,
+ fn_status=capi.lib.notmuch_threads_status,
fn_get=capi.lib.notmuch_threads_get,
fn_next=capi.lib.notmuch_threads_move_to_next)