X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fmessage.py;h=d1c1b58c4a9a0cc129830fdcec2eceee93821d60;hb=8cca886b10c5ec44f3214701c0c1e3c896d53d5c;hp=d7f029f8789d43faeca117e4febec70ede109506;hpb=8dc8495010057202b725ac029831c03f4e3ab6bd;p=notmuch diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index d7f029f8..d1c1b58c 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@ -229,7 +229,7 @@ class Message(Python3StringMixIn): #Returns NULL if any error occurs. header = Message._get_header(self._msg, _str(header)) - if not header: + if header == None: raise NullPointerError() return header.decode('UTF-8', 'ignore')