]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/query.py
python: more error handling fixes
[notmuch] / bindings / python / notmuch / query.py
index 0c08aa9eafc235b230ac8e23f7595ced9b33b7f7..6132ca007c2f6d89a223be172cdc8b96f51765fa 100644 (file)
@@ -70,7 +70,7 @@ class Query(object):
 
     def _assert_query_is_initialized(self):
         """Raises :exc:`NotInitializedError` if self._query is `None`"""
-        if self._query is None:
+        if not self._query:
             raise NotInitializedError()
 
     """notmuch_query_create"""