From 659244f0a27b8cba3d70d315bc61193e2e4b9713 Mon Sep 17 00:00:00 2001 From: Konstantin Gukov Date: Fri, 26 May 2023 09:54:13 +0200 Subject: [PATCH] Correct indentation of the multiline error message --- gpt4all-bindings/python/gpt4all/gpt4all.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpt4all-bindings/python/gpt4all/gpt4all.py b/gpt4all-bindings/python/gpt4all/gpt4all.py index 492c34c8..d8bdfe39 100644 --- a/gpt4all-bindings/python/gpt4all/gpt4all.py +++ b/gpt4all-bindings/python/gpt4all/gpt4all.py @@ -316,7 +316,7 @@ class GPT4All(): elif model_name in MPT_MODELS: return pyllmodel.MPTModel() - err_msg = f"""No corresponding model for provided filename {model_name}. - If this is a custom model, make sure to specify a valid model_type. - """ + err_msg = (f"No corresponding model for provided filename {model_name}.\n" + f"If this is a custom model, make sure to specify a valid model_type.\n") + raise ValueError(err_msg)