]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/filename.py
debian: changelog for 0.11.1
[notmuch] / bindings / python / notmuch / filename.py
index a7cd7e63d44bf03076b5e21087e77ae425761a7a..f7313ec5ae856ccb008fe5ce16461e67e875faed 100644 (file)
@@ -69,7 +69,7 @@ class Filenames(object):
              reference to it, so we can automatically delete the db object
              once all derived objects are dead.
         """
              reference to it, so we can automatically delete the db object
              once all derived objects are dead.
         """
-        if files_p is None:
+        if not files_p:
             raise NotmuchError(STATUS.NULL_POINTER)
 
         self._files = files_p
             raise NotmuchError(STATUS.NULL_POINTER)
 
         self._files = files_p