[tune] hotfix log_once (#10069)

This commit is contained in:
Richard Liaw
2020-08-12 12:40:22 -07:00
committed by GitHub
parent bb9ef511da
commit 7a8b922841
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ class Searcher:
try:
self.save(tmp_search_ckpt_path)
except NotImplementedError:
with log_once("suggest:save_to_dir"):
if log_once("suggest:save_to_dir"):
logger.warning(
"save not implemented for Searcher. Skipping save.")
success = False