X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fmessages.py;h=251fa3a3457f77ef42831925b7021264c4d9e3be;hb=162687a99e412098729d639ed7bc27f01372cb84;hp=6b024cbe0d00c6067c3155a4e2b00f8d3e344f55;hpb=09fdf2b283938da1cded87ec8621aabe917a8fa5;p=notmuch diff --git a/bindings/python/notmuch/messages.py b/bindings/python/notmuch/messages.py index 6b024cbe..251fa3a3 100644 --- a/bindings/python/notmuch/messages.py +++ b/bindings/python/notmuch/messages.py @@ -184,7 +184,7 @@ class Messages(object): def __del__(self): """Close and free the notmuch Messages""" - if self._msgs is not None: + if self._msgs: self._destroy(self._msgs) def format_messages(self, format, indent=0, entire_thread=False):