X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fmessage.py;h=fc177eb2b1557cb68c7c5c17bcedaf974b563869;hb=4dde1e677473faa6588909396820f9948e28923f;hp=d7f029f8789d43faeca117e4febec70ede109506;hpb=8dc8495010057202b725ac029831c03f4e3ab6bd;p=notmuch diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index d7f029f8..fc177eb2 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@ -12,7 +12,7 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with notmuch. If not, see . +along with notmuch. If not, see . Copyright 2010 Sebastian Spaeth Jesse Rosenthal @@ -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') @@ -572,7 +572,7 @@ class Message(Python3StringMixIn): notmuch.STATUS.SUCCESS here. See there for details.""" if not self._msg: raise NotInitializedError() - return Message._tags_to_maildir_flags(self._msg) + return Message._maildir_flags_to_tags(self._msg) def __repr__(self): """Represent a Message() object by str()"""