python: this was supposed to be an f-string

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel 2024-02-09 15:09:13 -05:00
parent 059afb8ee8
commit 6da62a62f0

View File

@ -175,7 +175,7 @@ class LLModel:
model = llmodel.llmodel_model_create2(self.model_path, b"auto", ctypes.byref(err))
if model is None:
s = err.value
raise ValueError("Unable to instantiate model: {'null' if s is None else s.decode()}")
raise ValueError(f"Unable to instantiate model: {'null' if s is None else s.decode()}")
self.model = model
def __del__(self):