]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/filename.py
python: more error handling fixes
[notmuch] / bindings / python / notmuch / filename.py
index 469b6a5a97640a463d9d8625ff21078271107181..322e6bf135b19ed8bc5f0b852e1a5d6b3fda5535 100644 (file)
@@ -89,7 +89,7 @@ class Filenames(Python3StringMixIn):
 
         This is the main function that will usually be used by the
         user."""
 
         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):
             raise NotmuchError(STATUS.NOT_INITIALIZED)
 
         while self._valid(self._files):