]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/message.py
python: fix NULL pointer tests
[notmuch] / bindings / python / notmuch / message.py
index 54c4e4b2c14b0394360bb8e78e9b5bdd3a46fb3f..4ec5147b55115bc2db1a2b26339bcb019e0ee99c 100644 (file)
@@ -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)