Start: Give the user a hint when a module can't be imported
If an ImportError or ModuleNotFoundError is raised, tell the user to run the update scripts. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
1aa934664c
commit
b6d2676f1c
3 changed files with 23 additions and 10 deletions
|
|
@ -51,7 +51,7 @@ class PromptTemplate:
|
|||
raise ImportError(
|
||||
"Parsing these chat completion messages requires jinja2 3.0.0 "
|
||||
f"or greater. Current version: {package_version('jinja2')}\n"
|
||||
"Please upgrade jinja by running the following command: "
|
||||
"Please update jinja by running the following command: "
|
||||
"pip install --upgrade jinja2"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue