From c6fc7124d1255f59a7a706de44f3a5ed9ceba8d1 Mon Sep 17 00:00:00 2001 From: Edward Oakes Date: Wed, 13 Jan 2021 18:34:21 -0600 Subject: [PATCH] [tune] Fix f-string in error message (#13423) --- python/ray/tune/suggest/nevergrad.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/ray/tune/suggest/nevergrad.py b/python/ray/tune/suggest/nevergrad.py index 93ecbd5a7..879ef1a9a 100644 --- a/python/ray/tune/suggest/nevergrad.py +++ b/python/ray/tune/suggest/nevergrad.py @@ -132,9 +132,9 @@ class NevergradSearch(Searcher): self._points_to_evaluate = None elif not isinstance(points_to_evaluate, Sequence): raise ValueError( - f"Invalid object type passed for `points_to_evaluate`: " - "{type(points_to_evaluate)}. " - f"Please pass a list of points (dictionaries) instead.") + "Invalid object type passed for `points_to_evaluate`: " + f"{type(points_to_evaluate)}. " + "Please pass a list of points (dictionaries) instead.") else: self._points_to_evaluate = list(points_to_evaluate)