X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fquery.py;h=6132ca007c2f6d89a223be172cdc8b96f51765fa;hp=0c08aa9eafc235b230ac8e23f7595ced9b33b7f7;hb=be851ad39de11f38e1cd4f7f15f1fa952232efe2;hpb=ab2f9fd828058d281480e9947ea346e382a7f3c8 diff --git a/bindings/python/notmuch/query.py b/bindings/python/notmuch/query.py index 0c08aa9e..6132ca00 100644 --- a/bindings/python/notmuch/query.py +++ b/bindings/python/notmuch/query.py @@ -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"""