From 71acb5140b21c0380c943457f73735f8e58f3882 Mon Sep 17 00:00:00 2001 From: "Chi Wang (MSR)" Date: Fri, 5 Feb 2021 23:42:28 -0800 Subject: [PATCH] None check --- flaml/searcher/blendsearch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flaml/searcher/blendsearch.py b/flaml/searcher/blendsearch.py index adca20c562..202e475a18 100644 --- a/flaml/searcher/blendsearch.py +++ b/flaml/searcher/blendsearch.py @@ -116,7 +116,8 @@ def set_search_properties(self, else: self._metric, self._mode = metric, mode self._ls.set_search_properties(metric, mode, config) - self._gs.set_search_properties(metric, mode, config) + if self._gs is not None: + self._gs.set_search_properties(metric, mode, config) self._init_search() return True