X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Ffilename.py;h=322e6bf135b19ed8bc5f0b852e1a5d6b3fda5535;hp=469b6a5a97640a463d9d8625ff21078271107181;hb=be851ad39de11f38e1cd4f7f15f1fa952232efe2;hpb=ab2f9fd828058d281480e9947ea346e382a7f3c8 diff --git a/bindings/python/notmuch/filename.py b/bindings/python/notmuch/filename.py index 469b6a5a..322e6bf1 100644 --- a/bindings/python/notmuch/filename.py +++ b/bindings/python/notmuch/filename.py @@ -89,7 +89,7 @@ class Filenames(Python3StringMixIn): This is the main function that will usually be used by the user.""" - if self._files is None: + if not self._files: raise NotmuchError(STATUS.NOT_INITIALIZED) while self._valid(self._files):