X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Ffilename.py;h=f7313ec5ae856ccb008fe5ce16461e67e875faed;hb=221c7e0b38177f5f1dbf0561580c15e8aaa49004;hp=a7cd7e63d44bf03076b5e21087e77ae425761a7a;hpb=ffce9b7c25b9b44ec026b67d96e44cae09c99efe;p=notmuch diff --git a/bindings/python/notmuch/filename.py b/bindings/python/notmuch/filename.py index a7cd7e63..f7313ec5 100644 --- a/bindings/python/notmuch/filename.py +++ b/bindings/python/notmuch/filename.py @@ -69,7 +69,7 @@ class Filenames(object): 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