]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/filename.py
properly raise exceptions in python bindings
[notmuch] / bindings / python / notmuch / filename.py
index 630886d7977f1578786f5f60a4e0dcb306b926ec..a16e717e778d80fa4c9236ad94249c10ce237ceb 100644 (file)
@@ -68,7 +68,7 @@ class Filenames(object):
              once all derived objects are dead.
         """
         if files_p is None:
-            NotmuchError(STATUS.NULL_POINTER)
+            raise NotmuchError(STATUS.NULL_POINTER)
 
         self._files = files_p
         #save reference to parent object so we keep it alive