python: Do explicitly check if the next tag exists
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 9 Aug 2011 15:45:44 +0000 (17:45 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 9 Aug 2011 15:45:44 +0000 (17:45 +0200)
commit94c5edd064f856a888ce29f7ac1523006b4b8fd6
tree28d45a7ec86a220fddeca1c3d1e6e460e71036aa
parente75fd0d937fc93074f6aaee1bcbaa28ddcb70059
python: Do explicitly check if the next tag exists

If we try to pull a non-existing tag, Tags._get will return None and the
appended .decode() command will fail. So make sure that there is a tag to
be fetched before fetching it.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
bindings/python/notmuch/tag.py