diff --git a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py index b3624d518..241ced668 100644 --- a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py +++ b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py @@ -261,10 +261,10 @@ def _search_where( # construct predicate for config filter if config: - if thread_id := config["configurable"].get("thread_id") is not None: + if thread_id := config["configurable"].get("thread_id"): wheres.append("thread_id = %s") param_values.append(thread_id) - if checkpoint_ns := config["configurable"].get("checkpoint_ns") is not None: + if checkpoint_ns := config["configurable"].get("checkpoint_ns"): wheres.append("checkpoint_ns = %s") param_values.append(checkpoint_ns) if checkpoint_id := get_checkpoint_id(config):