core[patch]: Fix f-string formatting in error message for configurable_fields (#16411)

- **Description:** Simple fix to f-string formatting. Allows more
informative ValueError output.
  - **Issue:** None needed.
  - **Dependencies:** None.
  - **Twitter handle:** @FlightP1an
This commit is contained in:
Chase VanSteenburg 2024-01-22 14:08:44 -08:00 committed by GitHub
parent b26a22f307
commit 1011b681dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1646,7 +1646,7 @@ class RunnableSerializable(Serializable, Runnable[Input, Output]):
if key not in self.__fields__: if key not in self.__fields__:
raise ValueError( raise ValueError(
f"Configuration key {key} not found in {self}: " f"Configuration key {key} not found in {self}: "
"available keys are {self.__fields__.keys()}" f"available keys are {self.__fields__.keys()}"
) )
return RunnableConfigurableFields(default=self, fields=kwargs) return RunnableConfigurableFields(default=self, fields=kwargs)