X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Ffilename.py;h=f7313ec5ae856ccb008fe5ce16461e67e875faed;hb=f38bc44653ad910abb95add6b09321da11f50581;hp=a7cd7e63d44bf03076b5e21087e77ae425761a7a;hpb=ffe3097e58220d96c7a18b1b6062330551378b82;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