aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/python/notmuch/filename.py
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python/notmuch/filename.py')
-rw-r--r--bindings/python/notmuch/filename.py2
1 files changed, 1 insertions, 1 deletions
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):