X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Ftag.py;h=2f82c1a1d8b5d060b7816ea229cc1032ff4976e7;hb=c49bcfd4e2b539e65b0b4d59a414c2101f5178a2;hp=65a9118a6ce94d38c825e2f35e62a1a5838a9bef;hpb=687366b920caa5de6ea0b66b70cf2a11e5399f7b;p=notmuch diff --git a/bindings/python/notmuch/tag.py b/bindings/python/notmuch/tag.py index 65a9118a..2f82c1a1 100644 --- a/bindings/python/notmuch/tag.py +++ b/bindings/python/notmuch/tag.py @@ -116,8 +116,8 @@ class Tags(object): raise NotmuchError(STATUS.NOT_INITIALIZED) i=0 - while nmlib.notmuch_tags_valid(self._msgs): - nmlib.notmuch_tags_move_to_next(self._msgs) + while nmlib.notmuch_tags_valid(self._tags): + nmlib.notmuch_tags_move_to_next(self._tags) i += 1 self._tags = None return i