X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fmessage.py;h=4ec5147b55115bc2db1a2b26339bcb019e0ee99c;hb=162687a99e412098729d639ed7bc27f01372cb84;hp=54c4e4b2c14b0394360bb8e78e9b5bdd3a46fb3f;hpb=bbc38c5c11d76ec96a4648d33c0368584a11c748;p=notmuch diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index 54c4e4b2..4ec5147b 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@ -741,5 +741,5 @@ class Message(Python3StringMixIn): def __del__(self): """Close and free the notmuch Message""" - if self._msg is not None: + if self._msg: self._destroy(self._msg)