X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fmessage.py;h=0c3365b50414068bf7527a533eb8f3a447169780;hb=eb4cd33e6b5406bf69273be52f88a57dad6e8126;hp=e5f606217f560b179b6db0fb7a25df5dbcdf0865;hpb=34990908e75f73061753a7f38201a05247a207a1;p=notmuch diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index e5f60621..0c3365b5 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@ -115,7 +115,7 @@ class Messages(object): the Python object.(?) """ if msgs_p is None: - NotmuchError(STATUS.NULL_POINTER) + raise NotmuchError(STATUS.NULL_POINTER) self._msgs = msgs_p #store parent, so we keep them alive as long as self is alive @@ -290,7 +290,7 @@ class Message(object): objects are dead. """ if msg_p is None: - NotmuchError(STATUS.NULL_POINTER) + raise NotmuchError(STATUS.NULL_POINTER) self._msg = msg_p #keep reference to parent, so we keep it alive self._parent = parent